fix support older php array indexing