- added doesIntExist helper function