public function isRegistered($name)
    {
        return
            array_key_exists($name, $this->services)
            || (
                isset($this->serviceProviders[$name])
                && $this->serviceProviders[$name] instanceof ServiceProviderInterface
            );
    }
public function isRegistered($name)
    {
        return
            array_key_exists($name, $this->services)
            || (
                isset($this->serviceProviders[$name])
                && $this->serviceProviders[$name] instanceof ServiceProviderInterface
            );
    }
public function isRegistered ( $ name ) { return array_key_exists ( $ name , $ this -> services ) || ( isset ( $ this -> serviceProviders [ $ name ] ) && $ this -> serviceProviders [ $ name ] instanceof ServiceProviderInterface ) ; }
Check if service is registered

@param string $name Service name

@return bool
Check if service is registered