Ensuring that TOS is an array when using the merge operator