[Twig] If statement to check if page is a subpage

Hi there,

Does someone know what kind of if-statement I need to write to check if the current page is a child page?

You could check by if page.parent() != false.