[Style] Don't use reduce to determine if there are changes

Use a var instead, as per @alloy