Add exists condition before the Fit_WS call