code: def is_enabled(self, name):
          
          if self.services and name in self.services:
              return self.services[name]['config'] == 'enabled'
          return False
docs: Check if given service name is enabled