The `acoPath` check exist in 182 ? Would make it a lot more precise if the error actually says if is the ARO or ACO that's missing.

Move the $acoPath down to line 181; since if the $aroPath is missing, you don't need the variable