You are thinking of 'any' when it is used as a quantity, like 'some'. It is not an absolute rule though. You can ask 'Do you have any/some matches' quite interchangeably.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.