fix bug about array_search
Merge pull request #135 from phpcr/fix-array-search

fix bug about array_search