generalize the getRobotDisallows() function to any field