better if statement for update condition