@FalseOnNull
  public static boolean isValid(@Nullable EncodedImage encodedImage) {
    return encodedImage != null && encodedImage.isValid();
  }
Checks if the encoded image is valid i.e. is not null, and is not closed.

@return true if the encoded image is valid
imagepipeline-base/src/main/java/com/facebook/imagepipeline/image/EncodedImage.java