private static function replace(string $text, Array $data = null): string {
    if (!empty($text) && count($data)) {
      if ($metaText = (new ReplaceText())->replace($text, $data)) {
        $text = $metaText;
      }
    }
    return $text;
  }