def find_new_array_name(arrays, name: str):
    """ Tries to find a new name by adding an underscore and a number. """
    index = 0
    while "dace_" + name + ('_%d' % index) in arrays:
        index += 1

    return "dace_" + name + ('_%d' % index)