private bool IsEmptyBlock(Node node) { Block block = node as Block; if (null == block) return false; return block.IsEmpty; }