Determines whether a given module exists.
string $module: The name of the module (without the .module extension).
bool TRUE if the module is both installed and enabled, FALSE otherwise.
function module_exists($module) {
$list = module_list();
return isset($list[$module]);
}