<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def list_split(val, split_on_comma=True):
 """Try to split each member of a list with comma separator. If we don't have to split just return val :param val: value to split :type val: :param split_on_comma: :type split_on_comma: bool :return: list with members split on comma :rtype: list ['a,b,c'] ['a', 'b', 'c'] [] """

    if not split_on_comma:
        return val
    new_val = []
    for subval in val:
        # This may happen when re-serializing
        if isinstance(subval, list):
            continue
        new_val.extend(subval.split(','))
    return new_val