empty() does not work when passing data from an object. Why?
<p>I just discovered that <code>empty()</code> does not work when passing data from an object. Why is that?</p>

<p>This is my code:</p>

<pre><code>// This works
$description = $store-&gt;description;
if (!empty($description) )
  echo $description;

//This is not working
if (!empty($store-&gt;description) )
  echo $store-&gt;description;
</code></pre>

<p><strong>UPDATE</strong><br>
Added extra code for context.</p>

<pre><code>// At the top of my PHP file I have this code
$store = Factory::new_store_obj($id);

// To controll that I got content, I can test by printing object
echo '&lt;pre&gt;';
print_r($store);
echo '&lt;/pre&gt;';

//output
Store Object
(
    [data:Store:private] =&gt; Array
        (
            [name] =&gt; Lacrosse
            [street1] =&gt; Bygdøy Allé 54
            [street2] =&gt; 
            [zipcode] =&gt; 0265
            [city] =&gt; Oslo
            [country] =&gt; Norway
            [phone] =&gt; 22441100
            [fax] =&gt; 
            [email] =&gt; 
            [opening_hours] =&gt; 
            [keywords] =&gt; 
            [description] =&gt; Lacrosse er en bla bla bla...
        )
)
</code></pre>
