use checkCurrentPage for checking links page

Also, never return 0. If links are missing, assume the response is a single page and return 1.