Only call set if it was defined.