title: When using conditional statements inside of forEach, how to detect if every child failed the condition?
body: <p>Starting with a Firebase <a href="http://www.firebase.com/docs/datasnapshot.html" rel="nofollow">DataSnapshot</a>, I want something so that, in plain English, "if all the children failed the condition, execute something". </p>
  
  <p>Here is what I have now:</p>
  
  <pre><code>     appleappsRef.on('value', function (allApplesSnapshot){
              allApplesSnapshot.forEach(function (appleSnapshot) {
                  if (condition) {
                     //execute code
                  } 
              });             
        });   
  </code></pre>