we don't pull the google table if chapters.json exists

and improve the code so that it is more blade like