You are calling `is_int` twice for the same result