For defensive reasons I would also check if the content is not 0 and also set the error content