RAZ-1774: Collection.Search() brings back both released and un-released collections when release=true
Local var scoped all variables