Move isDestroyed() to a separate routine