Refactor node removal code
Refactor node removal code

Avoid switch tags nested in if statements and simplify $diveIn logic by returning early if the node can be removed

nickcernis/html-to-markdown,nickcernis/html-to-markdown,thephpleague/html-to-markdown,deadflowers/html-to-markdown,TomzxForks/html-to-markdown,jeremykenedy/html-to-markdown,jarnix/html-to-markdown,thephpleague/html-to-markdown