code: public function mapTree($nodeList) {
      $tree = $nodeList instanceof ArrayableInterface ? $nodeList->toArray() : $nodeList;
  
      $affectedKeys = array();
  
      $result = $this->mapTreeRecursive($tree, $this->node->getKey(), $affectedKeys);
  
      if ( $result && count($affectedKeys) > 0 )
        $this->deleteUnaffected($affectedKeys);
  
      return $result;
    }
docs: Maps a tree structure into the database without unguarding nor wrapping
  inside a transaction.
  
  @param   array|\Illuminate\Support\Contracts\ArrayableInterface
  @return  boolean