public static function hasSessionValue(string $name, bool $ignoreCase = false): bool
    {
        self::ensureSession();
        
        $session = $_SESSION ?? array();
        return ArrayUtils::doesArrayHaveValueForKey($session, $name, $ignoreCase);
    }