diff --git a/flake8_fancy_header/checker.py b/flake8_fancy_header/checker.py
index eaa9baa..94717b9 100644
--- a/flake8_fancy_header/checker.py
+++ b/flake8_fancy_header/checker.py
@@ -60,9 +60,6 @@ class FancyHeaderCheckerBefore37(BaseChecker):
     def run(self):
         body = self.tree.body
         if not body:
-            yield (
-                1, 1, self.message_missing, type(self),
-            )
             return
 
         if not isinstance(body[0], ast.Expr):
@@ -87,6 +84,9 @@ class FancyHeaderChecker(BaseChecker):
     def run(self):
         docstring = self.tree.docstring
         if not docstring:
+            if not self.tree.body:
+                return
+
             yield (
                 1, 1, self.message_missing, type(self),
             )

Header in empty file
I think plugin should allow empty files without header. 
It will be great if you change current behavior
diff --git a/tests/test_checker.py b/tests/test_checker.py
index b229032..3eb8bfd 100644
--- a/tests/test_checker.py
+++ b/tests/test_checker.py
@@ -23,7 +23,11 @@ class CheckerTestCase(unittest.TestCase):
     def test_empty_module(self):
         module = ast.parse('')
         checker = FancyHeaderChecker(tree=module, filename='spam.py')
-        self.assertEqual(len(list(checker.run())), 1)
+        self.assertEqual(len(list(checker.run())), 0)
+
+        module = ast.parse('\n\n\n')
+        checker = FancyHeaderChecker(tree=module, filename='spam.py')
+        self.assertEqual(len(list(checker.run())), 0)
 
     def test_module_with_docstring(self):
         module = ast.parse('"Spam module."')

pip install -e .
parse_log_pytest
pytest
pytest
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
certifi==2021.5.30
flake8==5.0.4
-e git+https://github.com/yevhen-m/flake8-fancy-header.git@97fa7a93e2c37119f7e78bda4385366e1f8249a1#egg=flake8_fancy_header
importlib-metadata==4.2.0
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
mccabe==0.7.0
more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work
packaging @ file:///tmp/build/80754af9/packaging_1637314298585/work
pluggy @ file:///tmp/build/80754af9/pluggy_1615976315926/work
py @ file:///opt/conda/conda-bld/py_1644396412707/work
pycodestyle==2.9.1
pyflakes==2.5.0
pyparsing @ file:///tmp/build/80754af9/pyparsing_1635766073266/work
pytest==6.2.4
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
typing_extensions @ file:///opt/conda/conda-bld/typing_extensions_1647553014482/work
zipp @ file:///tmp/build/80754af9/zipp_1633618647012/work

name: flake8-fancy-header
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - attrs=21.4.0=pyhd3eb1b0_0
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - importlib_metadata=4.8.1=hd3eb1b0_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - more-itertools=8.12.0=pyhd3eb1b0_0
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - packaging=21.3=pyhd3eb1b0_0
  - pip=21.2.2=py36h06a4308_0
  - pluggy=0.13.1=py36h06a4308_0
  - py=1.11.0=pyhd3eb1b0_0
  - pyparsing=3.0.4=pyhd3eb1b0_0
  - pytest=6.2.4=py36h06a4308_2
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - toml=0.10.2=pyhd3eb1b0_0
  - typing_extensions=4.1.1=pyh06a4308_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zipp=3.6.0=pyhd3eb1b0_0
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - flake8==5.0.4
      - importlib-metadata==4.2.0
      - mccabe==0.7.0
      - pycodestyle==2.9.1
      - pyflakes==2.5.0
prefix: /opt/conda/envs/flake8-fancy-header

tests/test_checker.py::CheckerTestCase::test_empty_module
tests/test_checker.py::CheckerTestCase::test_checker_with_absolute_filename tests/test_checker.py::CheckerTestCase::test_checker_with_absolute_filename_and_submodule tests/test_checker.py::CheckerTestCase::test_module_with_docstring tests/test_checker.py::CheckerTestCase::test_module_with_invalid_header tests/test_checker.py::CheckerTestCase::test_module_with_relative_filename tests/test_checker.py::CheckerTestCase::test_module_with_valid_header tests/test_checker.py::CheckerTestCase::test_module_with_valid_header_2 tests/test_checker.py::CheckerTestCase::test_module_with_valid_header_and_leading_comment tests/test_checker.py::CheckerTestCase::test_module_with_valid_header_for_init_module tests/test_checker.py::CheckerTestCase::test_module_without_docstring tests/test_checker.py::CheckerTestCase::test_valid_header_in_submodule tests/test_checker.py::CheckerTestCase1::test_checker_not_from_project_root
flake8_fancy_header/checker.py
flake8_fancy_header/checker.py