Wouldn't `HasFlag()` work here?