check updating value on existing key