code: def resource_exists(self, name):
          
          if name not in self.available:
              try:
                  get_zoneinfo().getinfo('zoneinfo/' + name)
                  self.available[name] = True
              except KeyError:
                  self.available[name] = False
  
          return self.available[name]
docs: Return true if the given resource exists