Changing to older array supported by 5.3 php