early return and remove __contains__