Any reason this can't be written as a single `if` with multiple and-ed conditions?