Checks if the given key has an object definition.

@since 1.0.0

@param  string  $key Object key.
@return boolean
503409
public function hasObject(string $key)
    {
        if (isset($this->definitions['instance'][$key])) {
            return true;
        }

        if (isset($this->aliases[$key])) {
            return isset($this->definitions['instance'][$this->aliases[$key]]);
        }

        return false;
    }
1349419
public function has($key)
    {
        return isset($this->data[$key]) || array_key_exists($key, $this->data);
    }
1225151
public function has($key)
    {
        if (!$this->isEnabled()) {
            return false;
        }

        return (null !== eaccelerator_get($this->prefix() . $key));
    }
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;
    }
1181595
public function has($key) {
        if (is_array($key)) {
            $key = $key['key'];
        }
        return isset($this->store[$key]);
    }
1229019
public static function has(string $key):bool
    {
        return self::getViewHelper()->getView()->getValue($key) !== null;
    }
1005396
protected function has($key)
    {
        if (!is_array($key)) {
            return (array_key_exists($key, $this->item));
        }

        foreach ($key as $value) {
            if (!array_key_exists($value, $this->item)) {
                return false;
            }
        }

        return true;
    }
818496
public function has($key)
    {
        // Got help from here: http://stackoverflow.com/a/3091136/1208233
        if (!$this->memcached->add($key, true, 10)) {
            // If not possible to add, then the key exists
            return true;
        } else {
            // If possible to add, then the key doesn't exist
            $this->memcached->delete($key);
            return false;
        }
    }
1075553
public function has($key): bool
    {
        $this->checkKey($key);
        return (bool) $this->getRedis()->keys($this->filterKey($key));
    }
1356659
function has($key) {
        if(\is_array($key) || \is_object($key)) {
            throw new \InvalidArgumentException('Key can not be an array or object');
        }
        
        $key = (string) $key;
        return parent::has($key);
    }
1340530
public function has($key)
	{
		if (count(func_get_args()) > 1)
		{
			foreach (func_get_args() as $value)
			{
				if ( ! $this->has($value)) return false;
			}

			return true;
		}

		if (is_bool($this->input($key)) || is_array($this->input($key)))
		{
			return true;
		}

		return trim((string) $this->input($key)) !== '';
	}
1355053
public function has($key)
    {
        if (!$this->isEnabled()) {
            return false;
        }

        return (false !== $this->server->get($this->prefix . $key));
    }
1259685
public function has($key): bool
    {
        return ArrayUtility::dotRead($this->data, $this->getNormalizedKey($key)) !== null;
    }
1293869
public function has($key)
    {
        if (null === $key) {
            throw new Exception\InvalidArgumentException('The specified key name is null');
        }

        if (!is_scalar($key)) {
            throw new Exception\InvalidArgumentException('The specified key name must be a scalar');
        }

        return array_key_exists($key, $this->collections);
    }
609952
public function has($key)
    {
        if ($this->needParser()) {
            $this->treatPutRequest();

            return array_key_exists($key, $_REQUEST);
        }

        return parent::has($key);
    }
76553
public function __isset($key)
    {
        $getter = 'get' . str_replace('_', '', $key);

        return method_exists($this, $getter) && null !== $this->__get($key);
    }
757897
public function has( $key )
	{
		$key	= !$this->caseSensitive ? strtolower( $key ) : $key;								//  lowercase key if dictionary is not case sensitive
		return array_key_exists( $key, $this->pairs );
	}