handle undefined variables
Merge pull request #1 from brianofearain/master

Adding handling undefined variables