public static boolean isNotEmpty(CheckConstraint info) {
    return info != null && !info.getCheckConstraints().isEmpty();
  }
CheckConstraintInfo is a metadata structure containing the Check constraints
associated with a table.
ql/src/java/org/apache/hadoop/hive/ql/metadata/CheckConstraint.java