No it's not a syntax error. Think again. What is path pointing at when you get into this function?