Moved var isChat down