In fact, there is no faster way, although instead, if you do not want to use this dummy query, you can probably make a request for the data you want, so if it returns, you can process the data without doing the second request.
Jeff wilcox
source share