Tidy if statement condition