Function isRecord