Whoa, why have I never seen this before? 

Still, are you sure line 961 needs to be deleted? $path will not be defined, right?