Add missing parentheses in if with an assignment