protected function is_svg() {
    $finfo = new \finfo(FILEINFO_MIME);
    $type = $finfo->file($this->upload_path . $this->file_name);

    if (str_contains($type, 'image/svg+xml')) {
      return TRUE;
    }

    return FALSE;
  }