So when $REMOTE_PORT is an empty string it remains an empty string, which is probably OK, given that it's not throwing any errors on me. But I'll abort the merge for now.