Using stackalloc span in if statement - C#