This if might be better outside the method.