def lastComment = [] if (lastComment.size() > 0) { lastComment = comments?.last() } print(lastComment)