You added this condition to improve performance in not HTML mode. So change of this line won't affect any core functionality.