Use err.notStored instead of null return value