Iterator with hasTable and Array as example