In media permission, isMediaInRestrictedFolder(), check folder exist before access his property