Please do not use affectation in if, it makes the code more difficult to read.