title: check existence of element in list
body: <p>I have a list of <code>Person</code> objects and I'd like to check if a person exists based on their name. Is there an easier way to do so other than this loop?</p>
  <pre><code>class Person:
      def __init__(self, name): 
          self.name = name
  
  
  found = False
  
  for p in person_list:
      if p.name == &quot;Alan&quot;:
          found = True
          break
  </code></pre>