Check if a book already exists