It does actually work this way, i spent a while trying to make it most concise and BC, it can get quite messy otherwise. The empty array has basically no effect on the output. The reason for this approach with the unset was because otherwise we have to duplicate the `instanceof` index type checking stuff for `$index` or `$options['index']` based on any prior `is_array()` checks..