update isInteger based upon http://stackoverflow.com/questions/3885817/how-to-check-if-a-number-is-float-or-integer