Can this be simplified as:

var isMobileChartVisible = settings.isMobileChartVisible || true;