Added a check for item.content not being empty, should maybe be done client-side.