Also this `if` block is the same as the one from the previous block. Could be extracted, too IMO.