matter of taste, but I think it's nicer to have assignment inside the IF (saves one line)

```php
if (!$vocabularies = array_intersect_key($vocabularies, $group_categories)) {
  // No vocabularies found.
  return;
}
```