Checks if the request has the token

@param string $key
@return bool
557055
public function requestHasToken($key)
    {
        $token = $this->request->input($key, null);
        
        if($token && $token === $this->getToken($key))
        {
            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]);
    }
1294830
public function has($key)
    {
        $array = $this->array;

        if (empty($array) || is_null($key)) {
            return false;
        }

        if (array_key_exists($this->unescapeDotKey($key), $array)) {
            return true;
        }

        foreach (explode('.', $this->escapedDotKeyToUnderscore($key)) as $segment) {
            $segment = $this->underscoreDotKeyToDot($segment);

            if (is_array($array) === false || array_key_exists($segment, $array) === false) {
                return false;
            }

            $array = $array[$segment];
        }

        return true;
    }
633623
public function hasFileIcon(string $key): bool
    {
        return $this->file_icons instanceof Collection && $this->file_icons->has($key);
    }
734796
public function has($key)
    {
        if (!is_string($key)) {
            throw new \InvalidArgumentException(htmlspecialchars(
                "Get function only accepts strings. Input was: $key."
            ));
        }

        return isset($this->services[ $key ]) || isset($this->instances[ $key ]);
    }
1201547
public function has($key): bool
    {
        static $UN_FOUND = null;

        if ($UN_FOUND === null) {
            // Generate unique string to use as marker.
            $UN_FOUND = \uniqid('arrayy', true);
        }

        return $this->get($key, $UN_FOUND) !== $UN_FOUND;
    }
955785
public function containsKey(string $key): bool
    {
        if (isset($this->orgData[$key])) {
            return ! isset($this->removeAttributes[$key]);
        } else {
            return isset($this->addAttributes[$key]);
        }
    }
403830
public static function check($key, $token)
    {

        if (isset($_SESSION[$key]) && $token === $_SESSION[$key]) {
            unset($_SESSION[$key]);
            return true;
        }

        return false;
    }
984102
public function has(string $key) : bool
    {
        $k = $this->keyConvert($key);
        return getenv($k) !== false;
    }
127667
public function has($key) {
        $key = $this->formatKey($key);
        return array_has($this->headers, $key);
    }
501514
private function isTokenInRequest(Request $request)
    {
        return $request->query->has($this->tokenParam) ||
            $request->attributes->has($this->tokenParam) ||
            $request->request->has($this->tokenParam);
    }
598795
public function has($key)
    {
        $menu = $this->getMenu($key);

        return !is_null($menu) && $menu->count() > 0;
    }
634699
public function has($key)
    {
        if (\strpos($key, '_')) {
            $key = \str_replace('_', '-', $key);
        }

        return isset($this->headerNames[\strtolower($key)]);
    }
124068
public function has($key)
    {
        if(array_key_exists($key, $this->aliases) || array_key_exists($key, $this->resolved)) {
            return true;
        } else {
            return false;
        }
    }
139665
public function has($key)
    {
        return $this->params->has($key) || $this->payload->has($key);
    }
720766
public function has($key)
    {
        // For performance, we can use isset,
        // but it will not match if value == 0
        return isset($this->values[$key]) || array_key_exists($key, $this->values);
    }
207676
public function has($key)
    {
        //~ Check if enabled
        if (!$this->isEnabled()) {
            return false;
        }

        //~ Clear expired Cache files
        $this->clearExpired();

        $key = $this->prefix() . $key;

        return isset($this->cache[$key]);
    }