title: If one of two elements exists, do something
body: <p>I currently do this to check if one of two elements exists:</p>
  
  <pre><code>if ($(".element1").length &gt; 0 || $(".element2").length &gt; 0) {
    //do stuff...
  }
  </code></pre>
  
  <p>Is there a better way to rewrite the same? I mean, is <code>.length</code> the same as <code>.length &gt; 0</code>?</p>