There is a chance for us here to get rid of such if statements by splitting up the method into two.