Use 'was' for singulars and uncountables; use 'were' for plurals, just as always: He was still waiting for some coffee, if there was any at all. He was still waiting for some donuts, if there were any at all. It is just a conditional clause, not subjunctive.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.