Bail-out early in the for install loops instead of continuing because for masks the error in the middle