Well this is exactly that complex if statement, which is hard to understand from my point of view.