only run gulp when the task is actually valid