def blurhash_validity_checker(blurhash: str) -> bool:
    """Checks if a blurhash is valid and returns True or False"""
    if len(blurhash) < 6:
        return False

    characters = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~"
    characters_values = dict(zip(characters, range(len(characters))))
    size_info = characters_values[blurhash[0]]
    size_y = int(size_info / 9) + 1
    size_x = (size_info % 9) + 1
    if len(blurhash) != 4 + 2 * size_x * size_y:
        return False
    return True