Using vfsStream.
Adding explicit is_file() check.