Used isset to check if value is set

Used isset to check if value is set to fix errors in PHP 5.5+
Merge pull request #44 from aaaqqqq/patch-2

Used isset to check if value is set