best way to detect invalid Haddock early?