code: def available(self):
          
          disco_info = yield from self._disco_client.query_info(
              self.client.local_jid.bare()
          )
  
          for item in disco_info.identities.filter(attrs={"category": "pubsub"}):
              if item.type_ == "pep":
                  return True
          return False
docs: Check whether we have a PEP identity associated with our account.