Can you replace this entire `if (isset($options['where'])) { ... }` block with:

```php
$where   = isset($options['where']) ? trim($options['where']) : '';
```