per Pull Request review, corrected if-statement conditional and updated block comment