Let's DRY up the code a bit. This condition is duplicated in the two branches of the `if`. We can move it before the `if` in a local variable. The `where` call should work fine with the array form of the condition.