Removed unnecessary condition in ArrayCollection::remove