$htaccessWorking is undefined in case of exception being throws/caught above