the tertiary operator is not needed here, we can simply use in_array's return value