public function load($id) { $rows = $this->sectionGateway->loadSectionData($id); if (empty($rows)) { throw new NotFound('Section', $id); } return $this->createSectionFromArray(reset($rows)); }