code reuse!
make a private function setUnsetProperty(node, key, value, isUnset)