function b = hasFolderHelp(topic)
%

%   Copyright 2018-2020 The MathWorks, Inc.

    folders = what(topic)';
    for folder = folders
        if ~matlab.internal.language.introspective.isObjectDirectorySpecified(folder.path) && helpUtils.folderHasContents(folder, true)
            % A folder has help if it has any contents.
            b = true;
            return;
        end
    end
    b = false;
end
