nested ternary operators are barely readable. And the second one is useless as ``$this->port`` is already null by default