jquery $(selector).ready() code running even if no element was matched
<p>I am using this code to only run this js on certain pages.</p>

<pre><code>$("body#action_new").ready(function() {
    console.log($("body#action_new"));
    console.log($("body#action_new").length);
    console.log("code is running");
}
</code></pre>

<p>Even though body#action_new does not exist, the code is running.</p>

<p>the two console.logs print out:</p>

<pre><code>[]
0
code is running
</code></pre>

<p>What gives?</p>
