Some API queries can have no results but still have a query-continue key, so iteration should continue even with no results
Some API queries can have no results but still have a query-continue key, so iteration should continue even with no results

pywikibot/core-migration-example