added check for no items