if statement always returns true - C#