make in_array() work properly