fn has_statements(node: &Node) -> bool
Helper function to check if a given node is or contains any statement.