Use is_file in ::isFile and bypass is_readable.