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

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

Checks if a value has been set in the session.
public check ( string $key, array $options = [] ) : Closure
$key string Key of the entry to be checked.
$options array Options array. Not used for this adapter method.
Результат Closure Function returning boolean `true` if the key exists, `false` otherwise.
    public function check($key, array $options = array())
    {
        $session =& $this->_session;
        return function ($self, $params) use(&$session) {
            return isset($session[$params['key']]);
        };
    }