title: Exists (-like) function for jQuery?
body: <p>How can I check the existence of an element in jQuery?</p>
  
  <p>Currently snip of my code looks like this:</p>
  
  <pre><code>if ($(selector).length&gt;0) {
      // This should do something
  }
  </code></pre>
  
  <p>Is there some kind of function, or a plugin that could work with this? Is there any better way to approach this?</p>