code: def alert_policy_exists(self, policy_name):
      
      if next((policy for policy in self.all_alerts if policy['name'] == policy_name), False):
        return True
docs: Check to see if an alert policy exists in NewRelic. Return True if so, False if not