parameters: (ctx, target)
docstring: Perform a check if a target is a valid, declared target.  The target will either be invalid, or if was somehow missed during
      the module def generation during the configure command.
  
      :param ctx:     Context
      :param target:  The target name to check
      :return: True if the module is valid, False if not
docstring_summary: Perform a check if a target is a valid, declared target.  The target will either be invalid, or if was somehow missed during
      the module def generation during the configure command.
docstring_tokens: Perform a check if a target is a valid declared target . The target will either be invalid or if was somehow missed during the module def generation during the configure command .
function: def is_valid_module(ctx, target):
      """
      Perform a check if a target is a valid, declared target.  The target will either be invalid, or if was somehow missed during
      the module def generation during the configure command.
  
      :param ctx:     Context
      :param target:  The target name to check
      :return: True if the module is valid, False if not
      """
      try:
          _get_module_def(ctx, target)
          return True
      except Errors.WafError:
          return False
function_tokens: def is_valid_module ( ctx , target ) : try : _get_module_def ( ctx , target ) return True except Errors . WafError : return False