Added hasPreviousItem() and hasNextItem()