The check for `$this->wdSession` is just to make sure that object is there. There can be valid `wdSession` object, but that doesn't mean that the session is started at all.

I can replace `''` with `null` anyway.