import re


def _empty_readability_check(summary: str) -> bool:
  """Check if the readability summary is actually an empty entry or not."""
  # It must be smaller than 1k chars, and contain a body tag, which should
  # not be there as summary should strip it.
  return (len(summary) > 1000 or
          not bool(re.match(r'<body.+</body>', summary, re.MULTILINE | re.DOTALL)))