handle empty courses list for static output