change "in_array" into "array_flip then isset"