Fix array_search check

ouch. good catch. can we just change that to `in_array`? would be more semantically precise.