<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def alert_policy_exists(self, policy_name):
 """Check to see if an alert policy exists in NewRelic. Return True if so, False if not"""

    if next((policy for policy in self.all_alerts if policy['name'] == policy_name), False):
      return True