This validation does not cover the case where parameter is null or some type other than boolean. This is more complete:
```
enabled = (enabled) ? true : false;
```
Same comment for `checked`.