A promotion can have no instance so:
```php
if ($instance instanceof SiteInstance &&
    $this->promotion->instance instanceof SiteInstance &&
    $this->promotion->instance->id !== $instance->id) {
```