Check if the format of a URL is valid or not.
URL to be checked.
True if the URL is valid, false otherwise.
An error if URL's constructor throws an error other than TypeError.
TypeError
Check if the format of a URL is valid or not.