no problem. in this case, you don't need to catch undefined because isNaN will do so (though oddly doesn't catch null ... go javascript).