Fixing check_credit to work when the API doesn't return full results