in reply to Cannot have plain/simple array after removal one inside another
To address the actual question: It's not entirely clear what you want the code to do. What do you want the output to look like?