Use correct check for url exists