Man, this is a seriously confusing pile of boolean here. Can we wrap this up in a helper method or something that makes it's intent a bit more obvious?