Bugfix - check the collection criteria to ensure a select all is not performed due to passing an empty array.