Exit utility function if items is undefined.