remove

Removes item and returns last item along with the indication if the removed element was the last one.