Actually I'd prefer to check the possible true values like this, and also to check the false possible values, and throw an exception otherwise.