import requests


def exists(path):
    """ Utility function to check whether a web file exists
    :param path:
    :return:
    """
    r = requests.head(path)
    # print(r.status_code)
    return r.status_code == requests.codes.ok