Added url.exists() checks to all functions