set the third parameter of in_array to true.