Isn't silently returning if you can't find the parent a bad idea? You're using this function for its side-effects, and there's no way to tell if the function succeeded from the outside right now.