Current page showing when attempting to list children

Hey there, I'm attempting to list child pages, only if they exist.

{{pages}} is doing what I expect it to do, and showing immediate children - great.

However, when I run this for a page that doesn't have any children I'm getting the current page in response, rather than an empty array.

Any tips to avoid this? I tried a few combinations of if's etc but to no avail...

>>>>>>> Unanswered <<<<<<<
2 Replies