question: public synchronized boolean hasScope ( ) { return ! scopeStack . isEmpty ( ) ; }
target:  Returns true if this thread is executing inside a scope. Use this method to check if calling a variant of popScope is safe.