Checks if the collection contains an item with the given ID.
bool contains(String id) => _items.containsKey(id);