Adds ability to return array - pre json_encode