`error!== null` should be `error !== null`