models/classes/runner/QtiRunnerService.php
public function hasFeedbacks(RunnerServiceContext $context, $itemRef)
    {
        $hasFeedbacks     = false;
        $displayFeedbacks = $this->displayFeedbacks($context);
        if($displayFeedbacks) {
            $feedbacks = $this->getFeedbacks($context, $itemRef);
            foreach ($feedbacks as $entry) {
                if(isset($entry['feedbackRules'])){
                    if(count($entry['feedbackRules']) > 0){
                        $hasFeedbacks = true;
                    }
                    break;
                }
            }
        }
        return $hasFeedbacks;
    }
public function hasFeedbacks(RunnerServiceContext $context, $itemRef)
    {
        $hasFeedbacks     = false;
        $displayFeedbacks = $this->displayFeedbacks($context);
        if($displayFeedbacks) {
            $feedbacks = $this->getFeedbacks($context, $itemRef);
            foreach ($feedbacks as $entry) {
                if(isset($entry['feedbackRules'])){
                    if(count($entry['feedbackRules']) > 0){
                        $hasFeedbacks = true;
                    }
                    break;
                }
            }
        }
        return $hasFeedbacks;
    }
Does the given item has feedbacks

@param RunnerServiceContext $context
@param string $itemRef  the item reference
@return boolean
@throws \common_Exception
@throws \common_exception_InconsistentData
@throws \common_exception_InvalidArgumentType
@throws \tao_models_classes_FileNotFoundException