........S. [ZBX-8415] fixed "if" statement; added comments