Add check for invalid channels