def head(l):
    """
    Maybe get head of the list.

    Parameters
    ----------
    l : indexable

    Returns
    -------
    head : first element in l or None is l is empty
    """
    if l:
        return l[0]
    else:
        return None