The AnimHandle system defines a unique ID number for every entity in the scene, including nodes, modifiers, materials, controllers, etc. When an entity is deleted from memory, its number will never be reused by any entity created later, except in the case of the so-called "wrap-around" - an unhealthy condition possible only when four billion entities (the 32-bit limit) are created in a single 3ds Max session.
Therefore you can determine whether an object is deleted by requesting the object using its handle, and seeing if the result is undefined.
Available in 3ds Max 2008 and higher.
This method returns the unique AnimHandle ID for the given scene entity.
This method returns the scene entity corresponding to the unique AnimHandle ID, or undefined if the entity has been deleted or has not been created yet.