add documentation for isInteger