Revert "#636 Remove redundant check."
Revert "#636 Remove redundant check."

This reverts commit 85925e528236aad75a63f97079b752d8c15d2557.

smbc-digital/iag-webapp,smbc-digital/iag-webapp,smbc-digital/iag-webapp