You can add the check `&& !isset($this->lastMessage)` so you don't need to do this more than once. That will require the empty value of `$this->lastMessage` to be `null`.

`isset()` is cheaper than `!empty()`