title: jQuery: Checking if next element exists
body: <p>Is there a way to check if a next element exists? Check my code:</p>
  <pre><code>if($(&quot;#people .making-of .mask ul li.current&quot;).next(&quot;li&quot;) != null) {
      alert(&quot;Exists&quot;);
  }
  else {
      alert(&quot;Dont exists&quot;);
  }
  </code></pre>
  <p>What am I doing wrong? Thanks a lot!</p>