Removed unneeded if statement inside the checkBot function.