You need to learn about the behaviour of signals and processes. helper_add_values_to_display_array is only updated once at the end of the process, it keeps it's previous value of 0 during the loop iteration and is assigned 1 afterwards.
You can use a variable if you want immediate update.