Unable to compare dates stored in front matter

check the length of that array (slice in golang) BEFORE you start the range.

{{ $arraylength := len .Params.report.reportedFatalities }}
{{ range .Params.report.reportedFatalities }}
... etc ...