This still isn't quite right - There may be maps that disallow bots from the first slot, but allow them in others.
You need to find the first slot that allows bots and then bail if there are none, instead of finding the first slot and then bailing if that doesn't support bots.