Not hitting the database if no collection is given