use the hasModule() and getModule() methods instead of testing against the module name.

This is better coding practice, and will be helpful in the future if we rename the module, or add other caching options and want to use the same convince methods.