No need for the ? true : false here - javascript will only return true or false.