creates security groups if they don't already exist

This creates security groups on ec2 if they don't already exist.
Why not return the empty array here?