contains: do not check if container is empty