Fix invalid access method with PHP <=5.4