Nit: since first block as an early exit, replace "else if" with just an "if" here.