protected function removeItem(string $key): bool
    {
        if (!$this->has($key)) {
            return false;
        }

        unset($this->items[$key]);

        return true;
    }
protected function removeItem(string $key): bool
    {
        if (!$this->has($key)) {
            return false;
        }

        unset($this->items[$key]);

        return true;
    }
protected function removeItem ( string $ key ) : bool { if ( ! $ this -> has ( $ key ) ) { return false ; } unset ( $ this -> items [ $ key ] ) ; return true ; }
Remove an item from the array collection by its key
@param string $key
@return bool Returns true if item was removed
Remove an item from the array collection by its key