remove PHP notice warnings
simplified isset
Merge pull request #2201 from DeuxHuitHuit/notice

Removed two PHP notice warnings