Where under any provision of this Act a thing can be done by a creditor or owner on an enforcement order only, and either—
the court may if it thinks just make a declaration that the creditor or owner is not entitled to do that thing, and thereafter no application for an enforcement order in respect of it shall be entertained.
Where—
and an interested party applies to the court for a declaration under this subsection, the court may make a declaration to that effect.