added isDestroyed function to check _destroyed as well