isset() checking to avoid E_NOTICE for undefined vars