Use is_numeric instead of is_int.