code: public boolean hasService(String serviceName) {
      return serviceName.equals(MORTAR_SERVICE) || findService(serviceName, false) != null;
    }
docs: Returns true if the service associated with the given name is provided by mortar.
  It is safe to call this method on destroyed scopes.