Prevent unnecessary requests to DB when no data found