Non-zero size checking on courses list size in MoodleHome