Checks if a key exists

@param mixed $key The key

@return bool
162179
public function has($key): bool
    {
        return isset($this->items[$key]) || array_key_exists($key, $this->items);
    }
1105983
public function has(string $key) : bool
    {
        return isset($this->collection[$this->useKey($key)]);
    }
946653
public function exists(string $key): bool
    {
        $driver = $this->getDriver();
        $exists = $driver->get($key) !== null;
        if ($this->hasEventListeners('itemExists')) {
            $this->dispatchEvent('itemExists', new \BearFramework\App\Cache\ItemExistsEventDetails($key, $exists));
        }
        if ($this->hasEventListeners('itemRequest')) {
            $this->dispatchEvent('itemRequest', new \BearFramework\App\Cache\ItemRequestEventDetails($key));
        }
        return $exists;
    }
1077463
public function has($key)
    {
        $flashMessages = $this->storage->get(self::FLASH_KEY);
        return isset($flashMessages[$key]);
    }
557431
public function has($key)
    {
        if (!$this->checkExtraColumns()) {
            return false;
        }

        $this->load();

        return Arr::has($this->data, $key);
    }
888325
function exists($key) {
		$key=$this->fixheader($key);
		return isset($this->headers[$key]);
	}
364032
public function offsetExists($key)
    {
        return isset($this->data[$key]) || array_key_exists($key, $this->data);
    }
986166
public function hasProperty( $key )
    {
        return \array_key_exists( $key, $this->data ) or in_array( $key, $this->additionalProperties );
    }
732119
public function has($key)
    {
        $value = $this->get($key);
        if ($value === false) {
            return false;
        }

        return true;
    }
278793
public function has($key)
	{
		$key = $this->id($key);
		return $this->apcu ? apcu_exists($key) : apc_exists($key);
	}
856790
public function has(string $key): bool
    {
        if (array_key_exists($key, $this->ttl) &&
            $this->time() - $this->ttl[$key] > 0
        ) {
            unset($this->ttl[$key]);
            unset($this->storage[$key]);

            return false;
        }

        return array_key_exists($key, $this->storage);
    }
1037200
private function exists($key)
    {
        $data = Query::from($this->table)->where('name', '=', $key)->get();

        return  count($data) > 0;
    }
225306
public function exists($key)
	{
		if(!function_exists('apc_exists')) {
			$success = false;
			$this->fetch($key, $success);
			return $success;
		}
		
		return \apc_exists($key);
	}
590745
public function exists($key)
    {
        if ($this->enabled) {
            return !$this->pool->getItem($key)->isMiss();
        } else {
            return false;
        }
    }
300181
public function exists(string $key)
    {
        return $this->useRedis(function($resource, $redis) use($key){
            return $redis->hexists($this->getStoreKey(), $key);
        });
    }
188633
public function exists($key)
	{
		return isset($this->data[$key]) && ($this->data[$key][1] > time());
	}
1300431
public function has($key)
    {
        return (bool) $this->redis->exists($this->redis->prefix($key));
    }