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; }