$totalLength += $frame->l7->getLength if $frame->l7;