Merge 2 fields for a dropdown

I did the path stuff the get the shop and page in return.
We have multiple shops in one kirby.
So our content folder looks like this:

- content/
  - shop1/
    -siteA/
    -siteB/
  -shop2/
    -siteA/
    -siteB/

the url then looks like panel/pages/shop1+siteA
and the only location in the objects where i found the needed data was in this path

$defaultArray = $site->findPageOrDraft($shopAndSitePath)->$defaultVariable()->split();