Rbac::getRole() : check if required role is an object before loop.