if @exercise_comments.present? json.question_comments do json.partial! "exercises/exercise_comments", question_comment:@exercise_comments end else json.question_comments [] end