Checking if group is provided