diff --git a/layouts/v7/modules/Vtiger/partials/SidebarAppMenu.tpl b/layouts/v7/modules/Vtiger/partials/SidebarAppMenu.tpl
index 71aaf78045eae877a00ad21bbee9a62d8535ab8c..34ae7308690018b709d3d850b1ba161d9b1b641b 100644
--- a/layouts/v7/modules/Vtiger/partials/SidebarAppMenu.tpl
+++ b/layouts/v7/modules/Vtiger/partials/SidebarAppMenu.tpl
@@ -32,7 +32,7 @@
 			{assign var=APP_LIST value=Vtiger_MenuStructure_Model::getAppMenuList()}
 			{foreach item=APP_NAME from=$APP_LIST}
 				{if $APP_NAME eq 'ANALYTICS'} {continue}{/if}
-				{if count($APP_GROUPED_MENU.$APP_NAME) gt 0}
+				{if !empty($APP_GROUPED_MENU.$APP_NAME)}
 					<div class="dropdown app-modules-dropdown-container">
 						{foreach item=APP_MENU_MODEL from=$APP_GROUPED_MENU.$APP_NAME}
 							{assign var=FIRST_MENU_MODEL value=$APP_MENU_MODEL}