[Tex/LaTex] How to supress an empty Volume entry being shown when citing arXiv using bibtex

bibtex

I'm currently writing a thesis using latex and bibtex and want to cite some arXiv articles with a bibtex entry like

@article{attention,
  author    = {Dzmitry Bahdanau and
               Kyunghyun Cho and
               Yoshua Bengio},
  title     = {Neural Machine Translation by Jointly Learning to Align and Translate},
  journal   = {arXiv preprint arXiv:1409.0473},
  year      = {2014}
}

When citing this entry, the resulting output is
[Bahdanau & Cho + 14] D. Bahdanau, K. Cho, Y. Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, Vol., 2014.

which has an empty Volume entry. How can I suppress this volume entry for arXiv?
I think, one solution might be to change the .bst file, which I got as part of a template for my thesis. Here is a part of the bst file, which I think might be relevant:

FUNCTION {format.vol.num.pages}
{ "Vol." volume tie.or.space.connect % field.or.null
  number empty$
    'skip$
    { ", No." number tie.or.space.connect *
      volume empty$
        { "there's a number but no volume in " cite$ * warning$ }
        'skip$
      if$
    }
  if$
  pages empty$
    'skip$
    { duplicate$ empty$
        { pop$ format.pages }
        { ", pp.~" * pages n.dashify * }
      if$
    }
  if$
}

Unfortunately, I don't know, how the .bst files work.
To be clear, I do not want to remove all Volume entries, but only in the case, that the entry is missing I want nothing to appear, instead of an empty Vol.

Best Answer

I now found the solution with the help of Andrew's comment and some trial and error. I changed the code of the format.vol.num.pages to handle the case of a missing volume entry:

FUNCTION {format.vol.num.pages}
{ volume empty$
    'skip$
    {  "Vol." volume tie.or.space.connect }% field.or.null
  if$
  number empty$
    'skip$
    { ", No." number tie.or.space.connect *
      volume empty$
        { "there's a number but no volume in " cite$ * warning$ }
        'skip$
      if$
    }
  if$
  pages empty$
    'skip$
    { duplicate$ empty$
        { pop$ format.pages }
        { ", pp.~" * pages n.dashify * }
      if$
    }
  if$
}