Define variable before using it
Merge pull request #253 from alleyinteractive/undefined-variable

Define variable before using it