REFACTOR: useless conditional as 'data' always evaluates to true (PR #9685)

GitHub