modfile.inquire() — check if file exists

inquire(file)
Output:
file_exists
This command returns 1 if the specified file exists, or 0 otherwise.