protected function isLocationDataValid($locationData)
    {
        $isValidLocationData = false;
        list($pageUid, $table, $recordUid) = explode(':', $locationData);
        $pageRepository = $this->getTypoScriptFrontendController()->sys_page;
        $timeTracker = $this->getTimeTracker();
        if (empty($table) || $pageRepository->checkRecord($table, $recordUid, true)) {
            // This check means that a record is checked only if the locationData has a value for a
            // record else than the page.
            if (!empty($pageRepository->getPage($pageUid))) {
                $isValidLocationData = true;
            } else {
                $timeTracker->setTSlogMessage('LocationData Error: The page pointed to by location data "' . $locationData . '" was not accessible.', 2);
            }
        } else {
            $timeTracker->setTSlogMessage('LocationData Error: Location data "' . $locationData . '" record pointed to was not accessible.', 2);
        }
        return $isValidLocationData;
    }