title: Check if a DIV element exists by its class in jQuery
body: <pre><code>&lt;div class="view-content"&gt;
      &lt;div class="views-row views-row-1"&gt;
      &lt;div class="views-row views-row-2"&gt;
      &lt;div class="views-row views-row-3"&gt;
      &lt;div class="views-row views-row-4"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How can I in JavaScript/jQuery check whether the last <code>&lt;div&gt;</code> element (<code>&lt;div class="views-row views-row-4"&gt;</code>) exist? </p>
  
  <p>Some times, I just have 3 and others 4. When I just have 3, I would like to perform some CSS changes.</p>