Switch to .some and .reduce in stat functions