title: Jquery check if a div is empty omitting: before or: after
body: <p>I need to check with Jquery if a Div is empty omitting: before or: after, doing this with a div that has a: before or: after takes into account the: before or: after</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(function(){
    if($('#content').not(':empty')) {
      console.log('Yes content');
    } else {    
      console.log('No content');
    }
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#content:empty {
      position: relative;
      display: block;
      min-height: 200px;
      background-color: rgb(240,240,240);
      text-align: center;
  }
  
  #content:empty:before {
      content: 'NO IMAGE';
      position: absolute;
      font-size: 25px;
      left: 0;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div id="content"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>