code: def is_correct(self):
          
          state = True
  
          # Ok just put None as modulation_period, means 24x7
          if not hasattr(self, 'modulation_period'):
              self.modulation_period = None
  
          if not hasattr(self, 'customs') or not self.customs:
              msg = "[macromodulation::%s] contains no macro definition" % (self.get_name())
              self.add_error(msg)
              state = False
  
          return super(MacroModulation, self).is_correct() and state
docs: Check if this object configuration is correct ::
  
          * Call our parent class is_correct checker
  
          :return: True if the configuration is correct, otherwise False
          :rtype: bool