This reverts commit b1f0e4c2d6. Sets are typically preferred for __contains__ checks when order doesn't matter.
b1f0e4c2d6