`is_array()` will also return true for associative arrays, so you'll lose the keys.