public function isRegistered($objectName)
    {
        if (isset($this->objects[$objectName])) {
            return true;
        }

        if ($objectName[0] === '\\') {
            throw new \InvalidArgumentException('Object names must not start with a backslash ("' . $objectName . '")', 1270827335);
        }
        return false;
    }
public function isRegistered($objectName)
    {
        if (isset($this->objects[$objectName])) {
            return true;
        }

        if ($objectName[0] === '\\') {
            throw new \InvalidArgumentException('Object names must not start with a backslash ("' . $objectName . '")', 1270827335);
        }
        return false;
    }
public function isRegistered ( $ objectName ) { if ( isset ( $ this -> objects [ $ objectName ] ) ) { return true ; } if ( $ objectName [ 0 ] === '\\' ) { throw new \ InvalidArgumentException ( 'Object names must not start with a backslash ("' . $ objectName . '")' , 1270827335 ) ; } return false ; }
Returns true if an object with the given name is registered

@param  string $objectName Name of the object
@return boolean true if the object has been registered, otherwise false
@throws \InvalidArgumentException
@api
Returns true if an object with the given name is registered