Found a bug in the categoryExists() method. I've corrected it in the zip file found here.