fake array implementation