@staticmethod
def sanitize_bool(value):
    """
        If value is provided, sanitize it.

        'true' will be used if value is in [True, 'true', 'True', 1].
        'false' will be used if value is in [False, 'false', 'False', 0].

        If we receive any other value value will be set to None and
        ignored when building the GET request.

        :param value: The value to sanitize.
        :type value: bool, str, int
        :returns: str, None
        """
    if value in (True, 'true', 'True', 1):
        value = 'true'
    elif value in (False, 'false', 'False', 0):
        value = 'false'
    else:
        value = None
    return value
