Prevent warning in array_search.

Goes with bda8e76563ce70248faedbb0f7b3128b444fe82e