The check could be as simple as 'record exists' for `installed: true` and 'record doesn't exist' for `installed: false`.