public synchronized boolean isValid() {
    return !mIsClosed;
  }
Checks if this closable-reference is valid i.e. is not closed.

@return true if the closeable reference is valid
fbcore/src/main/java/com/facebook/common/references/CloseableReference.java