Minor fixes to get rid of undefined variable notices

A few empty() and isset() calls to get rid of undefined variable notices when using Xero properties.