Iterate keys not the values

Fixed an issue where we were iterating array of entitlements
when we were supposed to be iterating and checking existance
of the keys (product_id)