Fix issue of older php versions not allowing array call from method call