Usually, to make sure an instance is not destroyed, add a boolean to the struct called 'allocated' or some other name.
Set this boolean to true when you create an instance
Then set this boolean to false when you destroy it.
With that boolean, you can tell when an instance is destroyed or not.
Oh, and I wrote a tutorial on structs long ago
It's in the JASS/AI tutorial section.