Hanlin check for file existence.