I don't still understand...

> You may need to declare it outside the unless.

What is "it"(declare "it")? `result`?