Considering that we're not going to need this code unless the `if` on line 30 returns `True`, you might as well move this code inside that `if` statement.