Please simplify this condition, it's really confusing being split over lines with ()'s and such.