Maybe `$app->wg->out->getCategories();` would be better