I'm confused about this conditional, is it needed at all?  In what case do we not want to update $videos?  That is, why can't we just say:

    foreach ( $row as $name => $value ) {
        $videos[$order][$name] = $value;
    }