title: Checking if any element of an array satisfies a condition
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1986386/check-if-value-exists-in-array-in-ruby">check if value exists in array in Ruby</a>  </p>
  </blockquote>
  
  
  
  <p>I have this method which loops through an array of strings and returns true if any string contains the string 'dog'.  It is working, but the multiple return statements look messy.  Is there a more eloquent way of doing this?</p>
  
  <pre><code>def has_dog?(acct)
    [acct.title, acct.description, acct.tag].each do |text|
      return true if text.include?("dog")
    end
    return false
  end
  </code></pre>