minor adjustments:

* don't set fact if updates-available doesn't exist
* default value of 0 for facts