def missing_explanation(json):
    """Returns false if all recommendations have an explanation.
    Returns errormessage and status code if not."""
    for recommendations in json.values():
        for rec in recommendations:
            if 'explanation' not in rec:
                return 'Recommendations must include explanation.', 400
    return False