Can you promise me that no matter what result[key] is currently set to, that result[key] += val will be numeric?   With that syntax, it will be.