BZ1006188 - Grant access permission for sub packages to role 'package.admin'. Remove use of isEmpty()