WR#226650: Check to see if user is valid before processing the courses, throw a debugging error and return an empty array otherwise