fix array for older php