Break this boolean disaster down.

(topic deleted by author)