is hookFileName an array here? (since you changed to aCallFirst, it might be a simple value only, I don't know.)

If it's an array, I'd do `... fileName = hookFileName[0]` and if it isn't i'd do `if(hookFileName) ...`