title: Check if array is not empty
body: <p>********Update**********</p>
  
  <p><code>var_dump: string(0)</code> "" </p>
  
  <p>I am trying to check if part of an array is not empty then display code but the code get's displayed anyway.</p>
  
  <p>I have tried <code>!is_null !empty</code>. I am not really sure which should be correct or should I go with: 
  <code>if (sizeof($book['Booking']['comments'])&gt;0)</code></p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>&lt;?php if (!empty($book['Booking']['comments'])) {?&gt;
      &lt;table width="100%" border="0"&gt;
          &lt;tbody&gt;
              &lt;tr&gt;
                  &lt;td style="font-family:'Lucida Grande', sans-serif;font-size:12px;font-weight:normal;color:#666666;"&gt;
                      &lt;?=$book['Booking']['comments']?&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  &lt;? } ?&gt;
  </code></pre>
  
  <p><strong>Array:</strong></p>
  
  <pre><code>Array
  (
  [Booking] =&gt; Array
      (
          [id] =&gt; 109
          [user_id] =&gt; 1
          [corporate_account_id] =&gt; 0
          [id_ref] =&gt; RES000109
          [price] =&gt; 178.00
          [arrival] =&gt; 2011-10-18 00:00:00
          [departure] =&gt; 2011-10-19 00:00:00
          [rate_title] =&gt; 
          [adult_guests] =&gt; 4
          [child_guests] =&gt; 0
          [company] =&gt; gravitate
          [titlename] =&gt; 
          [firstname] =&gt; John
          [surname] =&gt; Doe
          [address1] =&gt; 123 Fake St
          [address2] =&gt; 
          [city] =&gt; New York
          [state] =&gt; NY
          [postcode] =&gt; 12345
          [country] =&gt; US
          [phone] =&gt; 1111111111
          [mobile] =&gt; 
          [fax] =&gt; 
          [email] =&gt; example@example.com
          [comments] =&gt; 
          [created] =&gt; 2011-10-18 13:40:47
          [updated] =&gt; 2011-10-18 13:40:47
          [status] =&gt; 1
          [cancelled] =&gt; 0
          [request_src] =&gt; website
          [request_token] =&gt; 0
          [token] =&gt; ayzrGnx
          [survey_sent] =&gt; 0000-00-00 00:00:00
          [survey_returned] =&gt; 0000-00-00 00:00:00
          [send_sms] =&gt; 0
          [payment_time] =&gt; 0000-00-00 00:00:00
          [fullname] =&gt;  John Doe
      )
  </code></pre>