I understand Luis' comment now. getElement returns a blessed object:
```
$VAR1 = bless( {
                 'VALUE' => 'true',
                 'NAME' => 'likeauth',
                 'EID' => '1189',
                 'PROF_DIR' => '/var/lib/ccm/profile.24',
                 'TYPE' => '33',
                 'CONFIG' => bless( {
```

I tested this on our internal systems and agree that ```push(@o, $kv) if $spec->{options}->{$kv};``` appears to work.