Fix security groups invocation to detect presence

RM10261