Stop using deprecated .exists method.