Leveraging underscorejs for condition