remove EMPTY_FLAGS check as the match check currently serves no purpose anyway