Revert "refactor: remove unnecessary checks (#7875)"
Revert "refactor: remove unnecessary checks (#7875)"

This reverts commit 43551b4fb60f449eb28600023eb0d3a3cf604a0e.

vuejs/vue,vuejs/vue,vuejs/vue,Jinjiang/vue,vuejs/vue,Jinjiang/vue,Jinjiang/vue,cnchanning/vue,Jinjiang/vue,cnchanning/vue,cnchanning/vue