The point is simply that the problem of evil leaves logic at home and goes out alone without a chaperone. The existence of evil in Hamlet in no way implies that Shakespeare lacked control of his art, or that he was evil. The implication that Shakespeare didn’t exist is even more outlandish.

