Replace for loop & if w/filter & lamba

for more functional approach. This isn't necessarily faster, but is more
succinct and (assuming one understands `filter` and `lambda`) clearer.
It also separates the messaging so it can be silenced obviously.