title: JavaScript: querySelector Null vs querySelector
body: <p>What is the main difference between these two methods of referencing? </p>
  
  <p>What are the benefits of using one or the other? Also what kind of usage-case would they each be best suited to?</p>
  
  <pre><code>var selection = document.querySelector('.selector') !== null;
  
  var selection = document.querySelector('.selector');
  </code></pre>
  
  <p>Is the former solely for browser legacy support? </p>