If the intent here is to check the ACL against a module, you'll need to make it `'com_modules.' . $serviceData['id']` (note the added dot).  Same for the other instances where you're checking this.