Hmm, if there's ever a state when a mug is a select item and it's parent mug is the root node, that's not a good sign.

Also, remember to always use `===` and `!==` for testing equality in JavaScript.