ensure passed collection is an array