title: How to check if a multi-dimensional array only contains empty values?
body: <p>I looked around and can't quite find the answer for this, so I'm wondering if I contain an array such as this..</p>
  
  <pre><code>$array['foo']['bar'][1] = '';
  $array['foo']['bar'][2] = '';
  $array['foo']['bar'][3] = '';
  $array['foo']['bar'][4] = '';
  </code></pre>
  
  <p>How can I check if all the values are empty? I tried doing the following:</p>
  
  <pre><code>if (empty($array['foo']['bar'])) {
      // Array empty
  }
  </code></pre>
  
  <p>But as expected that didn't work.</p>
  
  <p>How can I do this?</p>