Collection handling utility