In the arraysearch documentation, it states, "This function...returns an empty string when failed." However, in practice, I am seeing that it returns -1.
Topic on Extension talk:Arrays
That is the case if compatibility mode is set (or you're using an old version of the extension), but it is not the current behaviour.