[TASK] Refactors array helpers to collection, adds unit test