public static function remove($slug = null)
    {
        if ($slug === null) {
            static::$_current = null;
            static::$_modes = [];
        } else {
            if (isset(static::$_modes[$slug])) {
                unset(static::$_modes[$slug]);
            }
        }
    }