simplify _has_dig()