cleanup, tweaked _is_set to produce fewer warnings