@staticmethod
def _bool_to_string(value, true_string='true', false_string='false'):
    """Returns a string representation of a boolean value, or the value
        provided if the value is not an instance of bool
        """
    if isinstance(value, bool):
        return true_string if value is True else false_string
    return value
