Add helper method for gathering children elements into an array