def powerOfTwo(value):
    """
    Tries to determine if a given value is a power of two.
    
    @type value: int
    @param value: Value to test if it is power of two.
       
    @rtype: bool
    @return: C{True} if the value is power of two, 
        C{False} if it doesn't.
    """
    return value != 0 and value & value - 1 == 0
