I think so. This is just another test to figure out if the course already exists. This test may be too aggressive tho: if the course existed and was deleted, this line may catch it. This line may be the reason zubair wrote all of that purge roles logic.