Get/Set "Show Transform Controls" option

Guys, could you advise how to get the state of the “Show Transform Controls” option for the Move Tool and change it?