Use re.test() to avoid of null.match()