protected function forwardToLastModule()
{
$moduleData = BackendUtility::getModuleData(array('controller' => ''), array(), 'tx_realurl_web_realurlrealurl');
//Don't need to check if it is an array because getModuleData always returns an array. Only have to check if it's empty.
if (!empty($moduleData)) {
$currentController = $this->getControllerName();
if ($moduleData['controller'] !== '' && $moduleData['controller'] !== $currentController) {
$this->redirect(null, $moduleData['controller']);
}
}
}