HHVM compatibility: objects don't have array-like interface

Bug: 66937
Change-Id: I6da1eb76afc26ebf724c089d7137c4e5106fbe7c