title: Global event if a jQuery selection returns no elements?
body: <p>Is there any way to globally monitor or listen to if a selection is made in jQuery and it returns no elements? E.g.:</p>
  
  <p>You have a page with:</p>
  
  <pre><code>&lt;div id=”some-id”&gt;&lt;/div&gt;
  </code></pre>
  
  <p>And in a JavaScript someone tries to get the element but mistypes the id:</p>
  
  <pre><code>$(“#someid”)
  </code></pre>
  
  <p>Is there any way to globally handle when a jQuery selection returns no elements? </p>