public function getSettings(Model $model) { return property_exists($model, 'algoliaSettings') ? $model->algoliaSettings : []; }