title: Automatic functions in object 's object?
body: <p>Consider this class:</p>
  
  <pre><code>
  class Test {  
      public $obj;  
  
  function __construct ($obj) {  
      $this->obj = $obj;  
  }  
  </code></pre>
  
  <p>$obj has its own public functions. I call it through my code as <code>$t = new Test($obj); $t-&gt;obj-&gt;do();</code></p>
  
  <p>I want to allow $obj to be empty, without triggering errors. Is it possible to perform some trick with PHP 's magic functions to always return false if the function is not explicitly set? Also, would there be a solution for PHP &lt; 5.3?</p>