code: public static CmsMenuItemVisibilityMode visibilityCheckHasModule(String name) {
  
          if (OpenCms.getModuleManager().hasModule(name)) {
              return CmsMenuItemVisibilityMode.VISIBILITY_ACTIVE;
          } else {
              return CmsMenuItemVisibilityMode.VISIBILITY_INVISIBLE;
          }
      }
docs: Returns VISIBILITY_ACTIVE if a module with the given name exists, and VISIBILITY_INVISIBLE otherwise. <p>
  
  @param name a module name
  @return the visibility