public synchronized boolean hasScope(){
  return !scopeStack.isEmpty();
}

public synchronized boolean hasScope ( ) { return ! scopeStack . isEmpty ( ) ; }
returns true if this thread is executing inside a scope . use this method to check if calling a variant of popscope is safe .
