_prepareAndProcessTransforms(svg) {
    if (!('transform' in svg)) {
      return [];
    }

    if (isFunction(svg.transform)) {
      return [svg.transform];
    }

    if (Array.isArray(svg.transform)) {
      return svg.transform.filter(transform => isFunction(transform));
    }

    throw new TypeError('Expected transform property to be a function or array');
  }
Prepare svg transforms

@param {object} svg         SVG object
@returns {Array<Function>}  Array of svg transform functions
@private