By default, if not specified in front matter, the Lastmod method will fall back to modified, then date, then publishdate, then pubdate, then published.
In that case, I think it would be better to create a custom property, something like updated, to have that control, when the date is specified, print the div and when not, don’t print anything.