* Expose constraints attribute in UI

Linked to issue #124 
Use triple equals unless comparing against `null`:

    !== -1