title: Having trouble getting jQuery "not" method and selector working on body element
body: <p>I'm having a hard time trying to understand why this is not working as expected.</p>
  
  <p>I simply am trying to target the <code>body</code> element, but <em>only</em> if does <em>not</em> contain the <code>.logged-in</code> class, but with the code below I get a log to the console whether the class exists or not.</p>
  
  <pre><code>if ($('body:not(.logged-in)')) {
      console.log('Hi!');
  }
  </code></pre>
  
  <p>...or...</p>
  
  <pre><code>if ($('body').not('.logged-in')) {
      console.log('Hi!');
  }
  </code></pre>
  
  <p>Am I missing something here?</p>