Collection method for checking if collection contains resource.