i am not doubting that something is wrong here. just wondering what the really correct thing would be. i think what we really want to say is that if we have a node add operation at this path and that operation is not skipped, then the node is not deleted. what the code is currently doing is not what it should. and i wonder we we don't simply use isset instead of array_key_exists.