def split_ids(key, data):
    """
    This will split an entry by '|', since the id fields are '|' separated. If
    the given key is not present then [] is returned.
    """

    if data[key]:
        return data[key].split("|")
    return []