Update if statement