Change if statement syntax