ACT-2102: remove duplicate condition in "if" statement