Removed PHP notice messages

Edited a few IFs with if (isset($var)) to get rid of PHP notice messages.
Merge pull request #1 from sp00n/patch-1

Removed PHP notice messages