Creating array for each child element than only for multiple child
elements.