Fix API->hasPart()

Wrong variable name was being used to inspect partSize attribute