protected function createSectionsFromArray(array $data) { $sections = array(); foreach ($data as $sectionData) { $sections[] = $this->createSectionFromArray($sectionData); } return $sections; }