Check whether this node is valid at all.
Declared in <script/miniscript.h>
<script/miniscript.h>
bool IsValid() const;
True if this node has a valid type and size.