Why if and only if? Will it be any different if we are declaring a module inside the task? You still rely on an instance of grunt that is passed inside the task.