"? true : false" seems superfluous.