title: Find if an array of objects includes an attribute with a specific value
body: <p>The following code works, but can you tell me if this is the right way to do it?</p>
  
  <p>I have an array of Position objects and I want to check if it contains an object which attribute 'hidden' has "false' value:</p>
  
  <pre><code>&lt;% if positions.collect{|position| position.hidden}.include?(false) %&gt;
    ...
  &lt;% end %&gt;
  </code></pre>