Fix another SplFileInfo to boolean conversion

See: https://bugs.php.net/bug.php?id=65213