can't get array index after obj call in earlier php versions