title: jquery if tag is empty then write text - seems to not use if statement and applies to all tags whether empty or not
body: <p>I've tried many different ways to do this, and each time it writes .text('FREE') to all tags whether they are empty or not.</p>
  
  <p>I am trying to find all tags that are empty, then write the text "FREE" in the empty tag.</p>
  
  <p>If an em tag is not empty, it will be a dollar value such as "$8.00".  If it is a dollar amount then I want it to not do anything to it.  Could this be something related to having a dollar sign inside the tag?</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $( document ).ready(function() {
          if ($(".ProductPriceRating em").length == 0) {
              $(".ProductPriceRating em").text('FREE');
          }
  
       });
  &lt;/script&gt;
  </code></pre>
  
  <p>I will continue to try other things, but any input or education would be so appreciated, thanks much!</p>