Fix array index with php 5.6