Changed toggleHelp to use a ternary operator