In Angular 1.2, ngRoute is a separate module so you can use other community routers like ui.router instead.
I\'m writing an open-source mod
If you decorate angular.module to store the names in an array then you could just check if the array contains your module name.
See @dsfq's answer on SO.
This needs to happen after angular is loaded but before you start loading any angular modules.
if(angular.modules.indexOf("ngRoute") > -1) ...