public static function has_fields($post_type_name) {
    global $wpdb;

    $sql = $wpdb->prepare("SELECT COUNT(1) FROM ".MF_TABLE_CUSTOM_FIELDS. " WHERE post_type = %s",$post_type_name);

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