def head_of_list(x):
    """Takes a list, returns the first item in that list.
    If x is empty, return None

    >>> head_of_list([1, 2, 3, 4])
    1
    >>> head_of_list([]) is None
    True
    """ 

    return x[0] if x else None