Just use a map to boolean.