Added Value#isPresent
@@ -324,6 +324,15 @@ public interface Value {
return this instanceof MissingValue;
}
+ /**
+ * True for present values.
+ *
+ * @return True for present values.
+ */
+ default boolean isPresent() {
+ return !isMissing();
+ }
+
/**
* True if this value is an array/sequence (not single or hash).
*
