Shift the defensive code upwards so that there would not be an error