avoid calling server.saveobjects if objects list is empty