public static function sessionExists(string $name = null) : bool
    {
        if (!$name) {
            $name = get_class();
        }

        return self::session()->exist($name);
    }
public static function sessionExists(string $name = null) : bool
    {
        if (!$name) {
            $name = get_class();
        }

        return self::session()->exist($name);
    }
@param string $name

@return bool