function [hasUsages] = profileHasOpenUsagesInScrapArch(profile)
            hasUsages = false;
            try
                scrapArch = Simulink.SystemArchitecture.internal.ApplicationManager.getScrapArchitecture;
                mfModel = mf.zero.getModel(scrapArch);
                scrapArchModel = systemcomposer.architecture.model.SystemComposerModel.getSystemComposerModel(mfModel);
                scrapArchProfiles = scrapArchModel.getProfiles;
                for idx = 1:numel(scrapArchProfiles)
                    if(scrapArchProfiles(idx).getName() == profile.getName())
                        hasUsages = true;
                        return;
                    end
                end
            catch
                % An exception can be thrown if the System Composer (sysarch_app) module is not loaded while trying to access/clear the ScrapArchitecture
                % In that case, catch the exception and do nothing
            end
        end