lost the battle with 2.9 pattern matcher - partial flatmap(if(cond)...) == filter(cond) check