What about just checking for config[interval_type] ?

```if config[interval_type] && config[interval_type].length > 0```