protected function validate_attribute_data( $name, $slug, $type, $order_by, $new_data = true ) {
        if ( empty( $name ) ) {
            throw new WC_API_Exception( 'woocommerce_api_missing_product_attribute_name', sprintf( __( 'Missing parameter %s', 'woocommerce' ), 'name' ), 400 );
        }