def is_pos_pow_two(x: int) -> bool:
    """
    Simple check that an integer is a positive power of two.

    :param x: number to check
    :return: whether x is a positive power of two
    """
    if x <= 0:
        return False
    while (x & 1) == 0:
        x = x >> 1
    return x == 1