moved isIdField to Util