title: Advanced Custom Fields Group values are empty but wrapping element still visible
body: <p>I'm building a Wordpress site using the <code>Advanced Custom Fields</code>. So now I only want to display these fields if they "exist" e.g. if they have content. I made this conditional statement:</p>
  
  <pre><code>$casemodule = get_field('case_page_instore');   
  
   if( $casemodule ) : ?&gt;  
      &lt;section class="block"&gt;
          &lt;h2&gt;&lt;?php echo $casemodule['case_header'] ?&gt;&lt;/h2&gt;
          &lt;p&gt;&lt;?php echo $casemodule['case_subtext'] ?&gt;&lt;/p&gt;
      &lt;/section&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>So fa so good, If the fields <code>case_header</code> and <code>case_subtext</code> are empty, they will not be shown (obviously), but or some reason the <code>&lt;section&gt;</code>-tag is always visible, which is kind of strange since I followed the instructions on the <a href="https://www.advancedcustomfields.com/resources/group/" rel="nofollow noreferrer">ACF</a> page.</p>
  
  <p>Can someone maybe tell me what is going on?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I tried to do the <code>var_dump($casemodule)</code> and the result was:</p>
  
  <pre><code>array(2) { ["case_header"]=&gt; string(0) "" ["case_subtext"]=&gt; string(0) }
  </code></pre>
  
  <p>but that didn't solve anything</p>