It shouldn't happen because `children` should always be an array, but I saw it happen with fumadocs-mdx v8.2.26. Just need to replace `children.some()` with `children?.some()`.