public static function has($key, $strict = false)
    {
        $isset = isset($_COOKIE[$key]);

        if (!$strict) {
            return $isset;
        }

        if ($isset) {
            $isset = $isset && !empty($_COOKIE[$key]);
        }

        return $isset;
    }
public static function has($key, $strict = false)
    {
        $isset = isset($_COOKIE[$key]);

        if (!$strict) {
            return $isset;
        }

        if ($isset) {
            $isset = $isset && !empty($_COOKIE[$key]);
        }

        return $isset;
    }
public static function has ( $ key , $ strict = false ) { $ isset = isset ( $ _COOKIE [ $ key ] ) ; if ( ! $ strict ) { return $ isset ; } if ( $ isset ) { $ isset = $ isset && ! empty ( $ _COOKIE [ $ key ] ) ; } return $ isset ; }
Check for existence of a key in the session collection

@param string $key
@param bool   $strict

@return boolean
Check for existence of a key in the session collection