protected function allowNavigationToStep($index) { if ($this->getHistory()->contains($index)) { return $this->getWizardSteps()->itemAt($index)->getAllowReturn(); } else { return true; } }