The liver is a chemical scientist in a way processing and expelling chemicals with the buffer system it also process caffeine but too much caffeine will harm the liver.
Note i am not sure if understood your question if this answer is wrong .sorry its probably my fault