title: remove div with php if class exists
body: <p>I have 2 div's, if one is shown with a class="goodbye" - how do I remove the other div with php? </p>
  
  <p>Or do I have to use jQuery?</p>
  
  <pre><code>&lt;!-- this div should not show if the below class="goodbye" is on the page --&gt;
  &lt;div class="hello"&gt;
    Hello
  &lt;/div&gt;
  
  &lt;div class="goodbye"&gt;
    goodbye
  &lt;/div&gt;
  </code></pre>