the first check is json, and is good for parsing (notifications yes/no). I didn't want to parse the text myself because it is unstructured and can change any time. The second is the complete text, which is what you would want to put in the mail. I didn't want to parse the json myself because the service already returns a nice format. Also, the check only happens twice when actual problems were found. I don't see a problem in it.