handle curl response in separate method
Fix destroy if there is no id