def is_enabled(schema: QuestionnaireSchema) -> bool: return schema.get_submission().get("feedback")
def is_enabled(schema: QuestionnaireSchema) -> bool: if submission_schema := schema.get_submission(): return submission_schema.get("feedback", False)