/**
  * The place to check if the data set in the snippet is valid
  * to generate the snippet.
  *
  * When invalid data should result in an error, you can throw it
  * here but you can also perform the check in the
  * checkRegistryRequestsAnswers() function from the
  * {@see \MUtil_Registry_TargetInterface}.
  *
  * @return boolean
  */
 public function hasHtmlOutput()
 {
     if ($this->trackEngine && !$this->trackId) {
         $this->trackId = $this->trackEngine->getTrackId();
     }
     if ($this->trackId) {
         // Try to get $this->trackEngine filled
         if (!$this->trackEngine) {
             // Set the engine used
             $this->trackEngine = $this->loader->getTracker()->getTrackEngine($this->trackId);
         }
     } else {
         return false;
     }
     if (!$this->roundId) {
         $this->roundId = $this->request->getParam(\Gems_Model::ROUND_ID);
     }
     return $this->roundId && parent::hasHtmlOutput();
 }
 /**
  * The place to check if the data set in the snippet is valid
  * to generate the snippet.
  *
  * When invalid data should result in an error, you can throw it
  * here but you can also perform the check in the
  * checkRegistryRequestsAnswers() function from the
  * {@see \MUtil_Registry_TargetInterface}.
  *
  * @return boolean
  */
 public function hasHtmlOutput()
 {
     if ($this->request->getParam($this->confirmParameter)) {
         $this->performAction();
         $redirectRoute = $this->getRedirectRoute();
         return empty($redirectRoute);
     } else {
         return parent::hasHtmlOutput();
     }
 }