Minor performance optimization for lookups of `ArrayCollection#contains()`