Isn't `$chk` deprecated - can't this be `isFinite(result)` or `Type.isNumber(parseInt(result, 10))`