Determine if the given key should exist in the output.

@param $key

@return bool
979086
private function shouldShowKey($key)
    {
        if ($this->key) {
            if (Str::contains($key, '.') && Str::startsWith($key, $this->key)) {
                return true;
            }

            if (! $this->option('close') && $key != $this->key) {
                return false;
            }

            if ($this->option('close') && ! Str::contains($key, $this->key)) {
                return false;
            }
        }

        return true;
    }
1313046
public function exists($key)
    {
        if ($this->isMappedKey($key)) {
            return false;
        } else {
            return $this->getDriver()->exists($key);
        }
    }
1193687
public function __isset($key)
    {
        $source = $this->getData();

        return \array_key_exists($key, $source) && null !== $source[$key];
    }
439755
public function has(string $key): bool
    {
        $key = $this->getKey($key, true);
        return isset($this->headers[$key]);
    }
1316433
public function has($key) {
		$this->check();
		$data = $this->readData();
		return isset($data[$key]);
	}
225306
public function exists($key)
	{
		if(!function_exists('apc_exists')) {
			$success = false;
			$this->fetch($key, $success);
			return $success;
		}
		
		return \apc_exists($key);
	}
600816
public function has(string $key)
    {
        if (array_key_exists($key, $this->input)) {
            return true;
        }

        try {
            $this->find($this->input, $key);
            return true;
        } catch (\Exception $e) {
            return false;
        }
    }
433328
public function has(string $key): bool
    {
        $key = $this->prepareKey($key);
        return Arr::has($this->properties, $key);
    }
1349419
public function has($key)
    {
        return isset($this->data[$key]) || array_key_exists($key, $this->data);
    }
635966
public function has($key)
    {
        return isset($this->data[$key]) && is_array($this->data[$key]);
    }
590745
public function exists($key)
    {
        if ($this->enabled) {
            return !$this->pool->getItem($key)->isMiss();
        } else {
            return false;
        }
    }
170730
public static function has( $key )
	{
		$cache = self::instance();
		if ( $cache ) {
			return $cache->isExisting( $key );
		}
		return false;
	}
334315
public function exists($key)
    {
        try {
            return $this->redis->exists($key);
        } catch (\RedisException $e) {
            die("Error!: " . $e->getMessage() . "<br/>");
        }
    }
698705
public function exists(string $key): bool
    {
        return $this->handle->hExists($this->name, $key);
    }
1086491
public function has($key)
    {
        $key = trim($key, '.');
        if (strpos($key, '.') !== false) {
            $array =& $this->_items;
            foreach (explode('.', $key) as $v) {
                if (!isset($array[$v]))
                    return false;
                else
                    $array =& $array[$v];
            }
            return true;
        } else {
            return array_key_exists($key, $this->_items);
        }
    }
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;
    }
146432
public function exists($key)
	{
		$file = $this->getPath($key);

		return (file_exists($file) && filemtime($file) > time());
	}