cppcheck reported 'duplicateBranch' error in 2 if-else statements, b/c they are empty when running static-tests.