Added the hasKey() method.

The hasKey() method tells us if the given key is present in the
mapping. I’ll probably add a .keys() function later, and this function
should probably use it internally as well, but this will do for now.
Merge branch 'hasKey'