Nitpicking, but why don't you move this down to just above the `if ok` check?