isSharedFile() doesn't detect all shares, just use getUsersSharingFile() directly either you get a list of users or not
the default should be to encrypt all files if the user/admin doesn't specify a blacklist explicitely