public boolean isLocallyValid(boolean isProxy) {
    if (op == OP_NULL) {
      if (isProxy) {
        // If it is a proxy that consider it locally valid
        // since we don't have any local committed state
        return true;
      } else {
        return !Token.isInvalidOrRemoved(getOriginalValue());
      }
    } else {
      return op >= OP_CREATE && !Token.isInvalid(getNearSidePendingValue());
    }
  }
Returns true if the transaction state has this entry existing locally and has a valid local
value. Returns false if the transaction is going to remove this entry or its local value is
invalid.
geode-core/src/main/java/org/apache/geode/internal/cache/TXEntryState.java