Adding better way to evaluate ns-popover enable/disable property