Sync with work done in => https://github.com/joomlatools/foliokit/issues/174 The order for the SplFileObject checks needs to change in JTFW.