linting fix: Restructure bad empty if statement
Merge pull request #1118 from FredKSchott/linting-fix-empty-if-statement

linting fix: Restructure bad empty if statement