Replace is_numeric with ctype_digit for int checks on params.