This function returns one of the following values:
0, which is the index of the first value.
-1 if NULL.