I don't think so, the type is Integer.  I did consider using a try/catch instead of if/else.  Either way works.