Optimization in CompiledContainer::has()