Update ProcessFile.php

Fix for getFilesByExtension method; previous check for directories was incorrect