Function isValidExternalFileId