A company is not entitled to the exemption conferred by section 477 (small companies) in respect of a financial year during any part of which it was a group company unless—
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A company is not excluded by subsection (1) if, throughout the whole of the period or periods during the financial year when it was a group company, it was both a subsidiary undertaking and dormant.
For the purposes of this section—
The provisions mentioned in subsection (5) apply for the purposes of this section as if all the bodies corporate in the group were companies.