protected boolean hasLatestOrder(ActionRequest actionRequest) throws Exception { try { ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); ShoppingOrderLocalServiceUtil.getLatestOrder( themeDisplay.getUserId(), themeDisplay.getScopeGroupId()); return true; } catch (NoSuchOrderException nsoe) { return false; } }