Style nit: would prefer postfix `if` here (since the predicate is so simple)