affinityitems version 1.1.0 improvements

The previous version with ```foreach ($subject as $key => $value)``` was good, because I get a notice with array_keys() saying that I can't use it with an object.