DRY containsBit() && containsNotBit()