Checks if a value can be used as bitmask value (checks for a power of two)
bitmask::validValue($value)