Mixins, fixes

http://stackoverflow.com/questions/1323410/has-key-or-in