use in_array() correctly.