+1 to this pattern, but it should have been a single-line `if` statement, which i think should be encouraged. along with single line `for`s when they make sense