added ctype_digit check to isInt
fixed binary regexp