is_valid_url function

Determine if a URL is valid and reachable