we could do 

```
if ($sonataKeywords && $contentKeywords) {
    $sonataKeywords .= ', ';
}

return $sonataKeywords . $contentKeywords;
```

(the content keywords might be empty too, then we would create a trailing comma.