Correct iterator behavior

The current function returns false when a key is invalid. This class
was throwing an error...