Check that result is there before returning it.x