Yes!!
thanks for tip!!
In all fairness you made the connection yourself,but you're welcome
I'm using an array for this:
created:array[interval of objects array] of boolean;
But I didn't thought I have to use it here too.
Ah ok, yes. In case you are keeping track of things elsewhere then use that same 'track'-solution to check if the objects inside the array are still 'valid' or if they are already 'destroyed'.
I don't know if this is a good point in time to mention (introduce you to) it, but in case you are constantly adding/setting items to that array and destroying them again, then keeping track of that (as per your explanation) get's tiresome very fast and the clever people from FPC have thought of that by introducing a class that might be able to help in such cases, see
https://www.freepascal.org/docs-html/fcl/contnrs/tobjectlist.html.
But, if you are comfortable with what you are doing right now then please ignore that link. Perhaps you can take a look at it at your convenience. I do not wish to make things more complicated then they already are.