cart: check for $this->request->data before trying to process it