"continue" logic is generally frowned upon. Instead, maybe change to "if (ds.hasContent())", and pull the following lines into that "if" block.