Also, the implementation you provided only searches the first level of keys. We wanted to depth-first search through the entire tree for any key that might include a `.` or `$`.