Added additional check for SplFileInfo (#685)