def _str_to_bool(text):
    """
    convert a string to boolean. 'true', 'TRUE', 'TrUe', 'Yes', '1', 'y' and
    similar returns True, otherwise returns False
    :param text: text to convert to boolean
    :return: the boolean representation of the text
    """
    return text.lower() in ['true', 'yes', 'y', '1']