public function check($key, array $options = array()) { if (!$this->isStarted() && !$this->_start()) { throw new RuntimeException('Could not start session.'); } return function ($class, $params) { return Set::check($_SESSION, $params['key']); }; }