Why `in_array()` doesn't work?