De-referencing function call as array not allowed in PHP 5.3