Use in_array check instead array_search