I think this would've meant another query, so your changes are definitely an improvement.