Prefer writing this without a loop, perhaps:

```py
_check_int("RSAPublicKey", "field name", public_exponent)
```