Bugfix - should only check if the parent page allows sub pages if we have a parent page!