public function hasService($name)
    {
        if (!$this->serviceManager) {
            return false;
        }

        return $this->serviceManager->has($name, false);
    }
public function hasService($name)
    {
        if (!$this->serviceManager) {
            return false;
        }

        return $this->serviceManager->has($name, false);
    }
public function hasService ( $ name ) { if ( ! $ this -> serviceManager ) { return false ; } return $ this -> serviceManager -> has ( $ name , false ) ; }
Check if service exists

@param string $name
Check if service exists