maybe we should ask @WouterJ - i think i was keeping the `MenuNode[]` in some places as phpstorm then works better with things like `foreach` but its not exactly correct.