def isasteroid(self):
        """`True` if `targetname` appears to be an asteroid."""
        if self.asteroid is not None:
            return self.asteroid
        elif self.comet is not None:
            return not self.comet
        else:
            return any(self.parse_asteroid()) is not None
`True` if `targetname` appears to be an asteroid.