`setUpTwoWayBinding` function can check if values are different and perform updates if that's the case.