code node type checking