Check if module exists before modulifying