I think this would be more readable
```javascript
switch (attrs[optionName]) {
    case '':
    case 'true':
        return true;
        break;
    default:
        return false;
        break;
}
```