Personally I enjoy the idiom container[showFlag? "show" : "hide"](); but others may not!