Added logic to check for a sitemap