Modify the bf::exists function to check error.value (#275)