prevent division by zero for empty courses