Use `file_exist?(maildb_path)` instead. It's session type independent.