cppcheck: fix reports Possible inefficient checking for "<var>" emptiness
Merge pull request #1172 from serval2412/master

cppcheck: fix reports Possible inefficient checking for "<var>" emptines...