title: Strange bug between empty objet and empty object property in laravel?
body: <p>So I just stumble across a strange 'bug' in Laravel I'd like to have explanation about.</p>
  
  <p>So basicaly if I do </p>
  
  <pre><code>@if(!empty($p -&gt; $myObject)) ...SHOW STUFF... @endif
  </code></pre>
  
  <p>This is displaying nothing as if the object was empty... BUT</p>
  
  <p>If I <code>var_dump($p -&gt; $myObject)</code> I got a populated object. AND</p>
  
  <p>If I use a specific champ like : </p>
  
  <pre><code>@if(!empty($p -&gt; $myObject -&gt; name)) ...SHOW STUFF... @endif
  </code></pre>
  
  <p>It is displaying the name of the object.</p>
  
  <p>So what is going on there ? Can someone explain me the process ?</p>