guard against rubbish inputs when scraping