Any person who shall have the right of reentry into the lands by reason of any rent issuing thereout being in arrear, or by reason of the breach of any covenant or condition, may serve a declaration in ejectment on the tenant in possession, where there shall be such tenant, or, if the possession be vacant, by affixing the declaration upon the chief door of any messuage, or at any other conspicuous place on the premises, which service shall be in lieu of a demand and reentry; or may commence an action of unlawful detainer, and obtain service either in person or by publication, as in other such actions, which service shall be in lieu of a demand and reentry; and upon proof to the court, by affidavit in case of judgment by default, or upon proof on the trial that the rent claimed was due, and there was not sufficient property subject to distress upon the premises to satisfy the claim for rent due, or that the covenant or condition was broken before the service of the declaration in ejectment, or the commencement of the action of unlawful detainer, and that the plaintiff had power thereupon to reenter, he shall recover judgment, and have execution for such lands. In case the time for reentering be specified in the instrument creating the rent, covenant or condition, the proceedings in ejectment or unlawful detainer shall not be begun until such time shall have elapsed.