I wrote it as one return statement at first, but later decided to split the condition - mixing `&&` with long chain of `||` didn't look good to me too.