Return a PHP object instead of an array