public function isSectionUsed(Section $section) { return $this->sectionHandler->assignmentsCount($section->id) > 0 || $this->sectionHandler->policiesCount($section->id) > 0 || $this->sectionHandler->countRoleAssignmentsUsingSection($section->id) > 0; }