code: public boolean isInitialized() {
          WeakReference<Holder> ref = local.get();
          if (ref != null) {
              Holder holder = ref.get();
              return holder != null && holder.value != UNINITIALISED;
          } else {
              return false;
          }
      }
docs: Indicates whether thread-local has been initialised for the current thread.