Fix __contains__() method