Better check for not loading the module

I have a mostly empty module sitting in my tree so it caused this not to fail