This looks rather odd, any reason you can't just use `filter` straight up?