def assure_list_from_str(s, sep='\n'):
    """Given a multiline string convert it to a list of return None if empty

    Parameters
    ----------
    s: str or list
    """
    if not s:
        return None
    if isinstance(s, list):
        return s
    return s.split(sep)
