just use Option for nullable element refs such as parent node