code: def isasteroid(self):
          
          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
docs: `True` if `targetname` appears to be an asteroid.