replace weird boolean logic with ternary in Backbone example