Returns 1 if value is in the value domain of haystack ,
or 0 (zero) if not found.
This function is in all cases except when both arguments are strings
equivalent to (but sometimes faster than):
search(values(haystack ), value ) != -1
If both arguments are strings, has_value() is equivalent to:
search(haystack , value ) != -1