On second thought I think we should move the bool.TryParse call up here into the if. bool.TryParse will return whether the parsing succeeded or failed.