public function remove($key, $remove = true)
    {
        if ($remove && $this->has($key, self::HAS_EXISTS)) {
            $key = $this->normalizeKey($key);
            unset($this->data[$key]);
        }

        return $this;
    }
public function remove($key, $remove = true)
    {
        if ($remove && $this->has($key, self::HAS_EXISTS)) {
            $key = $this->normalizeKey($key);
            unset($this->data[$key]);
        }

        return $this;
    }
public function remove ( $ key , $ remove = true ) { if ( $ remove && $ this -> has ( $ key , self :: HAS_EXISTS ) ) { $ key = $ this -> normalizeKey ( $ key ) ; unset ( $ this -> data [ $ key ] ) ; } return $ this ; }
Removes specified collection item.

@param mixed $key    The item key.
@param bool  $remove [optional] Conditional remove statement.

@return $this
Removes specified collection item .