```php
$selected = isset($data['collections']) && $app['phraseanet.registry']->get('GV_autoSelectDb') ? $data['collections'] : null;
```