code: public function isAssessmentSectionAdaptive(AssessmentSection $section)
      {
          $assessmentItemRefs = $section->getComponentsByClassName('assessmentItemRef');
          return count($assessmentItemRefs) === 1 && $this->isAdaptivePlaceholder($assessmentItemRefs[0]);
      }
docs: Is an AssessmentSection Adaptive?
  
  This method returns whether or not a given $section is adaptive.
  
  @param \qtism\data\AssessmentSection $section
  @return boolean