By TravisCarden: Replaced deprecated module_exists() function calls per #2045931.