Replace function isRecord and delete it.