added and utilized function <checkProtectedArchiveVisible>