If not logged in there may not be session loggin variable so need to
check for not isset first.
             }
 
             // If it's a guest account and the request ID is in the current session - allow cart
-            if ( isset( $_SESSION['LoginAccount'] ) && $_SESSION['LoginAccount']['id'] == 0 && $_SESSION['glm_reg_cart_id'] == $requestId) {
+            if ( !isset( $_SESSION['LoginAccount'] ) || isset( $_SESSION['LoginAccount'] ) && $_SESSION['LoginAccount']['id'] == 0 && $_SESSION['glm_reg_cart_id'] == $requestId) {
                 return true;
             }