A function to see if a file exists with curl.