In this event handler, we're either going to remove or add an item to the cart. To avoid early returns, the logic a few lines above this will set removed to true if the item was removed. If that's the case, this logic to add the item won't run.