$reason is undefined in this context, creating it first means that the Inspector will not complain.
Merge pull request #2 from allain/master

$reason undefined