check available students before grouping