Confused about if statements - C#