Adds isset checks to avoid PHP Notice undefined index
Merge pull request #3238 from aaronschachter/php_forever

Adds isset checks to avoid PHP Notice undefined index