Have you tried turning it off and on again?
Reduce nesting by using early returns
Why positive form first improves your boolean logic.