Remove unneeded if statement from moduleVisit.js