Add if statement in the related jobs declaration