make sure to throw an exception if $key is not set in find.