isNaN is redundant with the regex in place