Revert "Fix warning: empty body in if condition."

This reverts commit d03b2f13eb8b0e063efcdabc74cde028f9262f1f.