public function check($name = null)
    {
        if ($this->_hasSession() && !$this->started()) {
            $this->start();
        }

        if (!isset($_SESSION)) {
            return false;
        }

        return Hash::get($_SESSION, $name) !== null;
    }