@see parent::hasCookie()

@return bool
779417
public function hasCookie($name)
    {
        if (!$this->request) {
            return $this->getRequest()->hasCookie($name);
        }
        return parent::hasCookie($name);
    }
301293
protected function hasRsaKey()
    {
        $hasKey = (isset($this->auth['key']) && trim($this->auth['key']) != '');

        return $hasKey || (isset($this->auth['keytext']) && trim($this->auth['keytext']) != '');
    }
547982
public function has()
    {
        if (!Request::has('position')) {
            return false;
        }

        if (isset($this->item->position)) {
            return true;
        }

        if (!empty($this->pivot) && isset($this->pivot->position)) {
            return true;
        }

        return false;
    }
798080
public function contains($key): bool
    {
        if ($this->cookieExists()) {
            $this->start();
        } elseif (!$this->sessionExists()) {
            return false;
        }
        return isset($_SESSION[$this->namespace][$key]);
    }
591173
public function has($key)
    {
        if ($this->where == true) {
            $this->setCache($key)->setPath(CYGNITE_BASE.DS.toPath('public.storage.cache').DS);
        }

        $cached = $this->getCache();

        return !empty($cached[$key]) ? true : false;
    }
189391
public function hasChildren()
    {
        if ($this->isDot()) {
            return false;
        }
        if (is_link($this->getPathname()) && !($this->flags & self::FOLLOW_SYMLINKS)) {
            return false;
        }
        return $this->isDir();
    }
1029687
public function check($name) {
        // is in cache?
        if(isset($this->cache[$name]))
            return true;

        return $this->cookies->has($name);
    }
941147
public function has($key)
    {
        if (\array_key_exists($key, $this->data)) {
            return true;
        }

        if (null === $this->parent) {
            return false;
        }

        return $this->parent->has($key);
    }
20470
public static function hasCookieToken(): bool
    {
        $cookieName = static::getCookieName();

        if ($cookieName === null || strlen($cookieName) == 0) {
            throw new Exception('Can not check if CSRF token is in cookie when cookie name is not set in CSRF configuration');
        }

        return Cookie::has($cookieName);
    }
1205003
public static function has($name)
    {
        !isset(self::$init) && self::init();

        return isset($_COOKIE[$name]);
    }
1062358
public function defineCookie() : bool
    {
        $timeStamp = (($this->expires === null) ? null : $this->expires->getTimestamp());
        return setcookie($this->name, $this->value, $timeStamp, $this->path, $this->domain, $this->secure, $this->httpOnly);
    }
446221
public function isLoggedIn() {
        $hasUserData    = isset($this->_store->userData);
        $hasLoginMethod = isset($this->_store->method);
        $hasValidToken  = isset($this->_store->token) && $this->validateToken();
        $isLoggedIn     = $hasUserData && $hasLoginMethod && $hasValidToken;

        // Don't leave invalid cookies laying around.
        // Clear data only when data is present, but it is invalid.
        if ($hasUserData && $hasLoginMethod && !$hasValidToken) {
            $this->_store->userData = null;
            $this->_store->method   = null;
        }
        return $isLoggedIn;
    }
1052817
public function hasMessage()
    {
        $has_message = parent::hasMessage();

        foreach ($this->pages as $page) {
            if ($page->hasMessage()) {
                $has_message = true;
                break;
            }
        }

        return $has_message;
    }
1110169
protected function check_login()
    {
        if (file_exists($this->cookie_file)) {
            if (time() - filemtime($this->cookie_file) >= 3600 || filesize($this->cookie_file) == 0) {
                $this->empty_cookie_file();
                $this->logged_in = false;
                return false;
            } else {
                $this->logged_in = true;
                return true;
            }
        } else {
            $this->empty_cookie_file();
            $this->logged_in = false;
            return false;
        }
    }
189739
protected function usingCookieSessions()
    {
        if (! $this->sessionConfigured()) {
            return false;
        }

        $handler = $this->manager->driver()->getHandler();

        if ($handler instanceof LockingSessionHandler) {
            return $handler->usingCookieSessions();
        }

        return parent::usingCookieSessions();
    }
554101
public function has_dns() {
		if (\is_null($this->dns)) {
			if (! $this->is_fqdn()) {
				$this->dns = false;
			}
			elseif ($this->is_ip()) {
				$this->dns = $this->is_ip(false);
			}
			else {
				$this->dns = !! \filter_var(
					\gethostbyname("{$this->host}."),
					\FILTER_VALIDATE_IP,
					\FILTER_FLAG_NO_PRIV_RANGE | \FILTER_FLAG_NO_RES_RANGE
				);
			}
		}

		return $this->dns;
	}
360613
public function getCurrentSessionHash(){
        return isset($_COOKIE[$this->config->cookie_name]) ? $_COOKIE[$this->config->cookie_name] : false;
    }