Add __contains__ to make testing easier.