If I have these strings:
\"abc\" = false
\"abc\"
false
\"123\" = true
\"123\"
true
\"ab2\"
With c# 7 it you can inline the out variable:
if(int.TryParse(str, out int v)) { }