title: Check if a div exists with jquery
body: <p>Yes, I know this has been asked a lot.
  But, it confuses me, since the results on google for this search show different methods (listed below)</p>
  
  <pre><code>$(document).ready(function() {
      if ($('#DivID').length){
          alert('Found with Length');
      }
  
      if ($('#DivID').length &gt; 0 ) {
          alert('Found with Length bigger then Zero');
      }
  
      if ($('#DivID') != null ) {
          alert('Found with Not Null');
      }
  });
  </code></pre>
  
  <p>Which one of the 3 is the correct way to check if the div exists?</p>
  
  <p>EDIT:
  It's a pitty to see that people do not want to learn what is the better approach from the three different methods. This question is not actually on "How to check if a div exists" but it's about which method is better, and, if someone could explain, why it it better?</p>