Add a check to prevent empty coursecontact