Revert "Check  is set since  is unset on destructing in some cases"

This reverts commit 7add95deb898b27d2e0e8f1f7957754d1a5b6f75.