private function parseChildren(Collection $children) { $modules = $children->modular(); if (count($modules) == 0) { return array(); } $configurations = array(); foreach ($children as $child) { $header = $child->header(); if (property_exists($header, "gravstrap")) { $gravstrapComponents = $this->addModulePageToGravstrap($header->gravstrap, $child); $configurations = array_merge($configurations, $gravstrapComponents); } } return $configurations; }