So when the "stopFunc" event is triggered it runs but it seems like the array is empty even though above it, it is being added. Is there a reason why this is happening