Indentation here and the same as above for reducing code duplication by extracting the condition as well as the parameters we want to update.