Improving validation to collection parameter