tweaked expand and collapse node functions to handle when they're called incorrectly
tweaked expand and collapse node functions to handle when they're called incorrectly

matortheeternal/zedit,matortheeternal/zedit,matortheeternal/zedit