Var assign to prevent server crashing when channel is undefined.