How to check options for null? - C#