trying to solve if every key needed exists in book object