protected function getNextIfTag(NodeAbstract $node) { if (null === ($tag = $node->getNextSibling())) { return; } if (!$tag instanceof Tag) { return; } return $tag; }