For consistency I would suggest returning 0 when rb is empty -> add_elements returns 0 when full...