core::hash_collection: shortcut some methods on empty collections