Function isExternalFile