bool hasHeader(String? name) { if (name != null) { return (_headers.containsKey(utils.headerize(name)) && true) || false; } return false; }