Fix array_search check
Use in_array check instead array_search
Merge pull request #134 from webda2l/patch-1

Fix array_search check