code: def url_is_valid(self, url):
          
          # Check if the file system path exists...
          if url.startswith("file://"):
              url = url.replace("file://","")
  
          return os.path.exists(url)
docs: Check if a URL exists