Method that allows implementing has_book in a worker process with no access to the data
...
A spot of refactoring