Adding isset checks to reduce undefined index errors

Fixed numerous PHP Notices of "Undefined index" by checking if the value has been previously set. Most of these revolved around $_COOKIE [ index ].