public synchronized boolean isValid() {
    return CloseableReference.isValid(mPooledByteBufferRef) || mInputStreamSupplier != null;
  }
Returns true if the internal buffer reference is valid or the InputStream Supplier is not null,
false otherwise.
imagepipeline-base/src/main/java/com/facebook/imagepipeline/image/EncodedImage.java