isdigit returns int, not bool