could we merge this `if` block into the one above?