Why isn't checking just this.settings.port enought?