You need to change the field key in the hook
.......add_filter('acf/load_value/key=field_5bcf70a95df1c',..............
with the field key of your repeater. Then you need to change the field key where we see if there is any value with the field key of your sub field if you’re doing anything with.
.............if ($value[count($value)-1]['field_5bcf70b75df1d']) {........