Fix php warning: reserve position in array