<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def has_main_target (self, name):
 """Tells if a main target with the specified name exists."""

        assert isinstance(name, basestring)
        if not self.built_main_targets_:
            self.build_main_targets()

        return name in self.main_target_