Better isInt method