Extract body of if into dedicated method?