Check node type on expand.