Hide Toolbar?

Is there a way to tell finder to Hide Toolbar if the current view has it showing?

tell application "Finder" to set toolbar visible of window 1 to false