[TASK] Replace array_push with normal array assignment