Returns the next FROM target value or empty

def _get_next_time(lines: [dict], target: str) -> str:  # type: ignore
    """
    Returns the next FROM target value or empty
    """
    for line in lines:
        if line[target] and not _is_tempo_or_prob(line['type']):
            return line[target]
    return ''