I see your suggestion. However, it's important to remember an array is a collection. No need to introduce an entire framework just to use one method.
Ah, I see that the other calls are to the Set class size and contains. I misread - I thought it was calling those on items. My bad. You are correct.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.