converted is* calls to locally defined variables (minifies better and can choose to change implementation more easily later)