Fixed verify_exists function.