public static function hasSessionValue(string $name, bool $ignoreCase = false): bool
    {
        self::ensureSession();
        
        $session = $_SESSION ?? array();
        return ArrayUtils::doesArrayHaveValueForKey($session, $name, $ignoreCase);
    }
public static function hasSessionValue(string $name, bool $ignoreCase = false): bool
    {
        self::ensureSession();
        
        $session = $_SESSION ?? array();
        return ArrayUtils::doesArrayHaveValueForKey($session, $name, $ignoreCase);
    }
public static function hasSessionValue ( string $ name , bool $ ignoreCase = false ) : bool { self :: ensureSession ( ) ; $ session = $ _SESSION ?? array ( ) ; return ArrayUtils :: doesArrayHaveValueForKey ( $ session , $ name , $ ignoreCase ) ; }
Checks if the session contains a value for the specified name.

@param string $name

@param bool $ignoreCase
[optional]
Whether to treat lowercase and uppercase letters as equivalent during the search.

@return bool Whether the session contains a value for the specified name.
Checks if the session contains a value for the specified name .