Fixed a couple of possible E_NOTICE's

Added some `isset()`'s to fix a couple of `E_NOTICE`'s.