fixed notice error due to lack of isset()
Merge pull request #2 from Menelao/master

fixed notice error due to lack of isset()