This code looks a little awkward to me.

First, consider using other standard library functions such as `none` or `all` instead of `any` to prevent at least some negations.

Second, why can't you iterate the parameter list with one simple `for` and check two conditions for each parameter in the loop body?