Is the check if variable is certain value creating performance hit? - C#