Change this line to the following:
return h == true;
Are you sure that this is correct? Have you tried it?
If you want to ignore the checksum it should always return true, so it should be:
return true;
In your message, it'll most likely return false if not an error. Judging from the source code,
h is a string variable, not a boolean.