if ( $o->get('progress') ) { ... }
These need to be changed something like:
if ( @{ $o->get('progress') || [] } ) { ... }