Added error catch for empty checkout