isParentOf() inside feed

Hello
I’ve set a feed template displaying two different pages with

<?php
    $posts_a = page('actualites')->children()->visible();
    $posts_b = page('catalogue')->children()->visible();
    $posts = new Pages(array($posts_a, $posts_b));
 
    echo $posts->sortBy('date', 'desc')->feed(array(
        'title'       => $site->title(),
        'description' => $site->description(),
        'link'        => 'feed',
    ));
?>

But these pages have different content, I would like to check “if” before including them into the feed. I use the isParentOf() in the template.php file of the feed plugin, but this doesn’t work.

<?php if($item->isParentOf('catalogue')): ?>
   <?php echo $site->text()->html() ?>
<?php endif ?>

This doesn’t return anything…

I guess you want to check if the item is a child of the catalogue page, not the parent => isChildOf()

arg, sorry, I always confuse both…Thanks !