import csv


def has_header(file):
    """Returns boolean if supplied file has a header

    Required:
    - file (str): full path to csv file
    """
    header = csv.Sniffer()
    has_header = False
    f = open(file, 'r')
    if len(f.readlines()) > 0:
        f.seek(0)
        has_header = header.has_header(f.readline())

    return has_header