code: def has_plugin_conf(self, phase, name):
          
          try:
              self.get_plugin_conf(phase, name)
              return True
          except (KeyError, IndexError):
              return False
docs: Check whether a plugin is configured.