code: def isServiceNameAvailable(self,
                                 name,
                                 serviceType):
          
          _allowedTypes = ['Feature Service', "Map Service"]
          url = self._url + "/isServiceNameAvailable"
          params = {
              "f" : "json",
              "name" : name,
              "type" : serviceType
          }
          return self._get(url=url,
                               param_dict=params,
                               securityHandler=self._securityHandler,
                               proxy_url=self._proxy_url,
                               proxy_port=self._proxy_port)
docs: Checks to see if a given service name and type are available for
          publishing a new service. true indicates that the name and type is
          not found in the organization's services and is available for
          publishing. false means the requested name and type are not available.
  
          Inputs:
             name - requested name of service
             serviceType - type of service allowed values: Feature Service or
                           Map Service