ArrayCollection added method isEmpty() and another fixes