Load different module when app opens based on variable in storage

For a hybrid app running on iOS and Android, I want to load a different module when the user opens the app the first time. This will based on a boolean variable in storage. If it’s false or doesn’t exist, open the “First Time” module, if it’s true, open the “Main App” module. What needs to be done in order to make this happen with the router?

I’m using Apache Cordova and would ideally make this determination in the deviceReady function. If there is a better place to handle this, please let me know.

Thanks,

K