tweaks to means of getting length of lists, and catching errors when searching a school for a programme that hadn't been created in that year