How about use the underscore test here: `result.length === +result.length`