Return false instead of void when there is an error.