Node children check function