public function remove($key) { try { $current =& $this->navigateToKey($key, false); $current = null; } catch (BadConfigKeyException $e) { // If we try to remove an empty node, don't error. } }