Raconteur: splitting the game

I want to split my game into several files. But I also need this function:

is_visited = (situation) -> undum.game.situations[situation].visited > 0

As you see, it requires Undum core and also it implies that Undum has been already initialized.

I can make it global, set it as “window.is_visited” but then I have an error because undum.game.situations is not initialized yet. I can’t even put it in the Undum initialization.

Is there a hack for that?