Removing function array lookups to work with PHP 5.3