XF 1.2 Template conditional for a certain forum

I have some stuff in my header and I want to disable it in certain forums. The stuff is displayed everywhere like at the members list and in threads. How can I make the system check if I am in a node with the ID 1234 to exclude it and all of its contents from that code?