Can just be `if ($additionals_exist)`

The variable name is also not very descriptive of what the value actually is. I already suggested to change the return of the function to a boolean value. When that is done the variable will be fine, but you should change the `= 0` on line 1041 to `= false`.