Instead of a true branch with an early return, can you just use `if (!port.value)` and put everything in that?