Detect if Menu Bar Menu-item is active

Hey Andreas, is there some BTT native way to check if Menu Bar Menu-item is active or not. For example I would like to know if "Close Tab" is active or not:

This can be done via apple script, but if there's an easier BTT way maybe it is better to use it (or not?):

tell application "System Events"
	tell process "Beyond Compare"
		set isCloseTabEnabled to enabled of menu item "Close Tab" ¬
			of menu "Session" of menu bar 1
	end tell
end tell

return isCloseTabEnabled

BTT has get_menu_item_details which can also be used from java script.

Some discussion here: