Can I write this JQuery statement cleaner?
<p>So I have the following:</p>

<pre><code>var box = $(".MyCheckBox");

if (box[0].checked)
{
    // Do something
}
else
{
    // Do something else
}
</code></pre>

<p>Is there a better way of doing this using filters or something?</p>

<p>I know I can go:</p>

<pre><code>$(".MyCheckBox")
    .filter(function(index) {
         return this.checked;
     })
    .each(function() {
         // do something
     });
</code></pre>

<p>But I need to do something in the else statement... easier way of doing this?  Thanks!</p>
