@J-Hilk
I managed the required behavior, somehow.
By blanking the key value:
stg.setValue("step_1", "")then scanning the keys, which have non-empty value, and skipping the empty ones.
I'll file a bug, cause I think it's a needed method!
By the way, thank you all