lithium\storage\session\adapter\Cookie::check PHP Метод

check() публичный Метод

Checks if a value has been set in the cookie.
public check ( string $key ) : Closure
$key string Key of the entry to be checked.
Результат Closure Function returning boolean `true` if the key exists, `false` otherwise.
    public function check($key)
    {
        $config = $this->_config;
        return function ($self, $params) use(&$config) {
            return isset($_COOKIE[$config['name']][$params['key']]);
        };
    }