I have a \"getter\" method like
function getStuff($stuff){ return \'something\'; }
if I check it with empty($this->stuff)
empty($this->stuff)
PHP's magic get method is named __get(). $this->stuff will not call getStuff(). Try this:
__get()
$this->stuff
getStuff()
public function __get($property) { if ($property == 'stuff') { return $this->getStuff(); } }