Move is_numeric assignment to before