Actually, you can remove this line. I don't think it's necessary to know if a location is active or not on the Event Manager page.