UPD: correct "if" condition