fixed the inverted method isRobotPresent()