title: Check if all items in a list are set to the same boolean value
body: <p>I have an ArrayList which is populated by a random number of <code>GameObj</code> instances each time the program is run.</p>
  
  <p>If an object makes contact with another object in the ArrayList, it will set a boolean called <code>visible</code> from <code>true</code> to <code>false</code>.</p>
  
  <p>Is there a way to check if all of the item instances in the ArrayList have been set to <code>false</code> through:</p>
  
  <pre><code>XXXX.visible = false
  </code></pre>
  
  <p>Once I can check if they are all set to <code>false</code>.</p>