/**
  * Loads the structure cache into the local structure variable if not done yet
  *
  * @return void
  * @throws Exception
  */
 public static function loadStructure()
 {
     if (self::$structure_loaded) {
         return;
     }
     self::$structure_loaded = true;
     self::$structure = unserialize(File::get(Path::tidy(BASE_PATH . "/_cache/_app/content/structure.php")));
     if (!is_array(self::$structure)) {
         // something has gone wrong, log a message and set to an empty array
         self::$cache = array();
         Log::fatal('Could not find or access your cache. Try checking your file permissions.', 'core', 'ContentService');
         throw new Exception('Could not find or access your cache. Try checking your file permissions.');
     }
 }