src/Container/Container.php
public function has($name): bool
    {
        return isset($this->values[$name]) ||
            isset($this->factory[$name]) ||
            isset($this->alias[$name]) ||
            \array_key_exists($name, $this->values);
    }
public function has($name): bool
    {
        return isset($this->values[$name]) ||
            isset($this->factory[$name]) ||
            isset($this->alias[$name]) ||
            \array_key_exists($name, $this->values);
    }
public function has ( $ name ) : bool { return isset ( $ this -> values [ $ name ] ) || isset ( $ this -> factory [ $ name ] ) || isset ( $ this -> alias [ $ name ] ) || \ array_key_exists ( $ name , $ this -> values ) ; }
Check for the existence of a component with a given name.

@param string $name component name

@return bool true, if a component with the given name has been defined
Check for the existence of a component with a given name .