Better IS_FLAG() which takes care of defaults.