isPowerOfTwo

Returns whether the given value is a power of two.

Return

Whether the value is a power of two.