What is this checking? `check_collection` is not a very descriptive name.