Strong checking

Condensed some code, strong checking instead of is_numeric() to:
preg_match("/^([0-9]+)$/",$VALUE)

Enabled verifyHash() to take in the original data array for ease.