Added isset checks to stop PHP Notices