Core: simplify boolean logic in Experiment::saveToFile
If in any block success
is set to false, then execution falls through to the final return
statement. Simpler and clearer, entirely without success
variable: Whenever a step fails, immediately return false
. If the end is reached without failure, then return true
.