Change in_array() to isset()