import requests


def url_check(url):
       #Description

       """Boolean return - check to see if the site exists.
          This function takes a url as input and then it requests the site 
          head - not the full html and then it checks the response to see if 
          it's less than 400. If it is less than 400 it will return TRUE 
          else it will return False.

       """
       try:
               site_ping = requests.head(url)
               if site_ping.status_code < 400:
                   #  To view the return status code, type this   :   **print(site.ping.status_code)** 
                   return True
               else:
                   return False
       except Exception:
           return False