// Get next node data from stack
$nodeData = $this->getStackerInstance()->popNamed(self::STACKER_NAME_INSERT_NODE);
+ // Make sure $nodeData is really an array and has at least one entry
+ assert((is_array($nodeData)) && (count($nodeData) > 0));
+
// Insert the data
$this->insertDataIntoDht($nodeData);
}