Wouldn't it make more sense to use -1 here, to indicate "I don't know", rather than use a possibly valid slot number?