allow headers to be optional when checking attributes