Adding check for folders before rendering menus