@FalseOnNull
  public static boolean isValid(@Nullable SharedReference<?> ref) {
    return ref != null && ref.isValid();
  }
Checks if the shared-reference is valid i.e. its reference count is greater than zero

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