code: def exists(self):
          
          try:
              self.instance_admin_client.get_app_profile(self.name)
              return True
          # NOTE: There could be other exceptions that are returned to the user.
          except NotFound:
              return False
docs: Check whether the AppProfile already exists.
  
          :rtype: bool
          :returns: True if the AppProfile exists, else False.