you can use ($title instanceof Title)