title: How to check null objects in jQuery
body: <p>I'm using jQuery and I want to check the existence of an element in my page. I have written following code, but it's not working:</p>
  
  <pre><code>if($("#btext" + i) != null) {
      //alert($("#btext" + i).text());
      $("#btext" + i).text("Branch " + i);
  }
  </code></pre>
  
  <p>How do I check the existence of the element?</p>