Why not use `in_array` here?