avoid `else` section

```php
if (empty($relation->via)) {
    throw new InvalidCallException(...
}

// your code there 

```