Check for existence of a key in the session collection

@param string $key
@param bool   $strict

@return boolean
437682
public static function has($key, $strict = false)
    {
        $isset = isset($_COOKIE[$key]);

        if (!$strict) {
            return $isset;
        }

        if ($isset) {
            $isset = $isset && !empty($_COOKIE[$key]);
        }

        return $isset;
    }
84082
public function is($key, $compareWith = true, $strictMode = false)
    {
        if (strpos($key, '.') === false) {
            $value = $this->get($key);
        } else {
            $value = $this->find($key);
        }

        if ($strictMode) {
            return $value === $compareWith;
        }

        /** @noinspection TypeUnsafeComparisonInspection */
        return $value == $compareWith;
    }
76553
public function __isset($key)
    {
        $getter = 'get' . str_replace('_', '', $key);

        return method_exists($this, $getter) && null !== $this->__get($key);
    }
1194364
public function unique($key = null, $strict = false): CollectionInterface
    {
        return $this->wrap(function (Iterator $data) use ($key, $strict) {
            $tracker = [];

            foreach ($data as $dataKey => $datum) {
                $compare = $datum;
                if ($key) {
                    $compare = is_callable($key) ? $key($datum, $dataKey) : $datum[$key];
                }

                if (!in_array($compare, $tracker, $strict)) {
                    yield $dataKey => $datum;
                    $tracker[] = $compare;
                }
            }
        });
    }
763988
function has($key)
    {
        $key = $this->_normalizeKey($key);
        return array_key_exists($key, $this->_referDataArrayReference());
    }
233023
public function has( $key = null )
	{
		$keys = is_array( $key ) ? $key : func_get_args();

		foreach ( $keys as $key )
		{
			if ( $this->first( $key ) === '' )
			{
				return false;
			}
		}

		return true;
	}
955785
public function containsKey(string $key): bool
    {
        if (isset($this->orgData[$key])) {
            return ! isset($this->removeAttributes[$key]);
        } else {
            return isset($this->addAttributes[$key]);
        }
    }
1339593
public function has($key = null)
    {
        if ($key === null) {
            return $this->count() > 0;
        }

        $arr = &$this->getStackByReference($key);

        return is_array($arr) ? array_key_exists($key, $arr) : false;
    }
373284
public function whereIn($key, array $values, $strict = true)
    {
        return $this->filter(function ($item) use ($key, $values, $strict) {
            return in_array(ArrayHelper::getValue($item, $key), $values, $strict);
        });
    }
400689
public function has(string $key): bool
    {
        return array_key_exists(strtolower($key), $this->keyMap) &&
            array_key_exists($this->keyMap[strtolower($key)], $this->collection);
    }
1068573
public function containsKey($key)
    {
        if (!$this->enabled)
            return false;

        $has_key = file_exists($this->file($key));

//        $this->Logger->debug("Cache contains {$key}? " . ($has_key) ? 'TRUE' : 'FALSE');

        return $has_key;
    }
782278
public function whereIn(string $key, $values, bool $strict = false)
    {
        $values = $this->getArrayableItems($values);

        return $this->filter(function ($itemKey, $item) use ($key, $values, $strict) {
            return in_array(self::dataGet($item, $key), $values, $strict);
        });
    }
76424
public function __isset($key)
    {
        $is_set = false;

        if (!in_array($key, $this->deprecated_properties)) {
            $is_set =
                method_exists($this, $this->getLoaderMethod($key)) ||
                ($this->hasInternalValue($key) &&
                    $this->internal_property_accessible[$key]) ||
                array_key_exists($key, $this->getProtectedPropertyList());
        }

        return $is_set;
    }
564041
public function whereIn($key, $values, $strict = false): CollectionInterface
    {
        return $this->wrap(function (Iterator $data) use ($key, $values, $strict) {
            foreach ($data as $itemKey => $item) {
                if (in_array($item[$key], $values, $strict)) {
                    yield $itemKey => $item;
                }
            }
        });
    }
1085712
function __isset($key)
    {
        $isset = false;
        try {
            $isset = (parent::__get($key) !== null);
        } catch(\Exception $e) { }

        return $isset;
    }
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);
    }
288391
public function has(string $key){
        $data   = $this->status() === self::ACTIVE
            ? $_SESSION : $this->finishedData;
        
        return array_key_exists($key, $data);
    }