Added ability to check if a module is loaded