Check previous page hierarchy

Hello,

is it possible to check if my page extends a specific class.

export class HomePage extends BaseLoadingPage {

So I want to check in another page if the previous page extends from BaseLoadingPage .
Something like this…

this.navCtrl.getPreviousPage() instanceof BaseLoadingPage