Stats field in Blueprint does not work perfectly (yet)

I have created a field in my Blueprints with cute statistics about the page:

Among other things, it shows whether subpages are included. If yes, these are counted (works!). If no, “keine” should appear. However, only a zero is displayed and the default value is ignored. The error is in the details, but unfortunately I do not see it.

Blueprint:

label: 'Statistik für "{{ page.title.value ?? page.slug }}"'
type: info
text: |
  - **Änderungsdatum:** {{ page.modified('d.m.Y') }} | {{ page.modified('H:i') }} Uhr
  - **Blueprint:** {{ page.intendedTemplate }}.yml **Template:** {{ page.template }}.php
  - **übergeordnete Seite:** {{ page.parent ? page.parent.title : 'keine' }}
  - **enthält ** {{ (page.hasChildren && page.hasDrafts) ? page.children.add(page.drafts).count : 'keine' }} Unterseiten
  - **hochgeladene Fotos:** {{ page.images.isNotEmpty ? page.images.count : 'keine' }}
theme: positive

The condition doesn’t make sense, it will return false if there are children and no drafts or vice versa, which is not what you want. And you can simplify this, by children for childrenAndDrafts.

page.childrenAndDrafts.isNotEmpty ? page.childrenAndDrafts.count : 'keine'

Great! Works immediately. Thank you very much. Your solution is much more logical and clearly structured. I didn’t know about “childrenAndDrafts” yet.