I'd suggest:

```php
$connectionString = $options->getConnectionString();

if (null === $connectionString) {
    // ...
}
```