MINOR: ist: Add `int isttest(const struct ist)`

`isttest` returns whether the `.ptr` is non-null.
diff --git a/include/common/ist.h b/include/common/ist.h
index a1d8218..aa25a1f 100644
--- a/include/common/ist.h
+++ b/include/common/ist.h
@@ -186,6 +186,12 @@
 	return (struct ist){ .ptr = (char *)ptr, .len = len };
 }
 
+/* returns the result of `ist.ptr != NULL` */
+static inline int isttest(const struct ist ist)
+{
+	return ist.ptr != NULL;
+}
+
 /* This function MODIFIES the string to add a zero AFTER the end, and returns
  * the start pointer. The purpose is to use it on strings extracted by parsers
  * from larger strings cut with delimiters that are not important and can be