public static function group_has_fields($group_id) {
    global $wpdb;

    $sql = $wpdb->prepare("SELECT COUNT(1) FROM ".MF_TABLE_CUSTOM_FIELDS. " WHERE custom_group_id = %d",$group_id);

    return $wpdb->get_var( $sql ) > 0;
  }