Check if hooks module is installed before attempting to use it's config