code: protected function saveAdaptiveResults(CatSession $catSession)
      {
          $testResult = $catSession->getTestResult();
          $testResult = empty($testResult) ? [] : [$testResult];
          return $this->storeResult(array_merge($testResult, $catSession->getItemResults()));
      }
docs: Save the Cat service result for tests and items
  
  @param CatSession $catSession
  @return bool