Wouldn't `qs.exists()` be a more efficient check here in terms of both SQL and memory usage?