Use Boolean.TryParse instead