Better error path for UniqueCollection