Move CTM check to seperate function and expose it.

This way, in further scripts you'll have access to check if enhance.ctm() is true or false.