Fix php warning, when render a index zero of array