```javascript
var price = Number(polygon.li.find('input').val());
price = isNaN(price) ? 0 : price
```