Best way to check if a string is a URL or file path? - Deno