The `in` operator is really slow and `map.size` or `set.size` could easily end up in a hot path.