Hi Charles,

Firstly let me thank you for a well formatted question!

OK, now I will try to explain some changes which will help you.

You only need one isInteger function, and within that...