Returns true if charset is defined.
true
bool get hasCharset => charset != null && charset!.isNotEmpty;