def decline_invite_command(instance, player, arguments = None):
  """ Remove a player from the invited list of an instance.

  Args:
    instance: The instance to uninvite player from.
    player: The player wishing to decline an invite.
    arguments: Not used, can be any value.

  If the player wasn't actually invited to the game, nothing happens
  and this method returns false.

  Returns:
    True if the player was previously invited to the game, False
    otherwise.
  """
  if player in instance.invited:
    instance.invited.remove(player)
    return True
  return False