function unregister ($nameOrNames)
  {
    if (is_array ($nameOrNames))
      unset ($this->items[$nameOrNames]);
    else foreach ($this->items as $i)
      unset ($this->items[$i]);
    return $this;
  }
function unregister ($nameOrNames)
  {
    if (is_array ($nameOrNames))
      unset ($this->items[$nameOrNames]);
    else foreach ($this->items as $i)
      unset ($this->items[$i]);
    return $this;
  }
function unregister ( $ nameOrNames ) { if ( is_array ( $ nameOrNames ) ) unset ( $ this -> items [ $ nameOrNames ] ) ; else foreach ( $ this -> items as $ i ) unset ( $ this -> items [ $ i ] ) ; return $ this ; }
Removes one or more items by name, if they exist.

@param string|string[] $nameOrNames The item name, or an indexed array of item names to be shared.
@return $this
Removes one or more items by name if they exist .