Break early from sum loop