Removed early check for empty inventory