```if (conditionFn(child)) {``` would be better I think.