[TASK] Adjust condition to expected return value
[TASK] Add excludePages argument
[TASK] Refactor method to make it reusable
[TASK] Correct docblock
[TASK] Add wrapper method for retrieving menu data
[TASK] Adapt changes introduced by refactoring
[TASK] Refactor to enable exclusion of pages

Caution: Method signature has changed
Merge pull request #282 from bjo3rnf/excludepages

[FEATURE] Enable exclusion of page uids from menus