to check if an instructor teaches a certain course