fix array to php<5.4