Add MATERIAL_IS and MATERIAL_ISNT macros