isValid

Return

true if value is a well-formed mask, meaning its set bits run from the left with no gaps.