Put the `if` inside the `def caveat`.