In more complex cases, I prefer to use a list, so that you have one set of classes common to all states, and other lists for different conditions. E.g. this snippet from core components. This way you might need to explicitly write the opposite of though.