jQuery equivalent of || or ?? operator
<p>Using plain JavaScript I can do stuff like this:</p>

<pre><code>var ninjaTurtle = document.getElementById('raphael') ||
                  document.getElementById('leonardo');
</code></pre>

<p>If the first DOM lookup returns <code>null</code>, which is falsy, the second lookup is evaluated.</p>

<p>The jQuery function <code>$()</code> always returns i jQuery array-like object, even when no elements are matched. Even when empty, this object is not falsy, hence the following expression will never evaluate the right hand side:</p>

<pre><code>var ninjaTurtle = $('#raphael') || $('#leonardo');
</code></pre>

<p>So, what is the idiomatic way of doing this kind of fallback when using jQuery?</p>
