Was using some PHP 5.4 syntax - updated to be backwards compatible.