So instead of using an array I used a map. The keys are soft references set to the SwitchActor instances in the level, the values are booleans set to the solution state. It works!