ruby way:
```
return "" unless bits.between?(0,32)
```
or another option using range
```
return "" unless (0..32).include? bits
```