We can consider a chemical to be safe if it does not contain any harmful substances such as nitrogen, harmful acids, or even excessive heat. Other chemicals such as the chemicals used in food products like, for example, citric acid, is not so harmful.
Hope this helps! :D
Any questions? Just let me know! I'd be happy to help any way possible.