Yes, the line 27 only indicates the case of a FATAL ERROR in case the ${file} does not fulfil, and I don't understand what file that is, in case that is the actual problem?

fatal_error.jpg