Originally posted by @chalin in #1890 (comment)
After looking at this more closely, it seems to make sense indeed.
Btw, the $parent variable is misnamed, because$parent is set to .Page.
Can we inline the variable instead?
Btw, IMHO .Page cannot be falsy, but .Page.File could be falsy. So the if condition can be simplified.