utility: get first element of collection