Getting the texture enable/disable value

Hi, does anyone know how to get the material texture enable/disable property in python? I’m referring to the left side checkbox that’s available in the texture property window. I checked the api documentation but I can’t find anything on it.
I’m trying to edit the blender to three.js exporter to ignore textures which are not active so I don’t end up exporting those image info to my js file.

Thanks,

Jim