Rename error to be more idiomatic
Remove superfluous null-binding