If we have an early return, add `fail("No ports available in range!")` here.