in reply to use alternate module if pm is not installed
Not specifically useful for this case maybe but also check out the if module to conditionally load a module.
The cake is a lie. The cake is a lie. The cake is a lie.