isvalid: Properly support commas in the arguments to the API calls

is_int() is a check for the internal type of the variable which will never be true because coming from the HTTP request is it always a string.