`if not port:` is more Pythonic.